Ignore:
Timestamp:
Jun 28, 2018 4:50:46 PM (4 years ago)
Author:
toby
Message:

Complete basestring fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3452 r3458  
    33893389        # make lists of variables of different types along with lists of parameter names, histogram #s, phase #s,...
    33903390        self.parmNames = sorted(list(parmDict.keys()))
    3391         basestr = basestring
     3391        if '2' in platform.python_version_tuple()[0]:
     3392            basestr = basestring
     3393        else:
     3394            basestr = str
    33923395        splitNames = [item.split(':') for item in self.parmNames if len(item) > 3 and not isinstance(self.parmDict[item],basestr)]
    33933396        globNames = [':'.join(item) for item in splitNames if not item[0] and not item[1]]
     
    34283431        count = 0
    34293432        for name in self.choiceDict[self.parmChoice]:
    3430             basestr = basestring
     3433            if '2' in platform.python_version_tuple()[0]:
     3434                basestr = basestring
     3435            else:
     3436                basestr = str
    34313437            if isinstance(self.parmDict[name],basestr): continue
    34323438            if 'Refined' in self.listSel and (name not in self.fullVaryList
Note: See TracChangeset for help on using the changeset viewer.