Changeset 3457


Ignore:
Timestamp:
Jun 28, 2018 4:23:15 PM (3 years ago)
Author:
toby
Message:

try basestring fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIexprGUI.py

    r3447 r3457  
    184184            except (TypeError,IndexError):
    185185                val = parmDict[key]
    186             if '2' not in platform.python_version_tuple()[0]: basestring = str
    187             if isinstance(val, basestring): continue
     186            if '2' in platform.python_version_tuple()[0]:
     187                string = basestring
     188            else:
     189                string = str
     190            if isinstance(val, string): continue
    188191            try:
    189192                self.parmDict[key] = float(val)
Note: See TracChangeset for help on using the changeset viewer.