Changeset 3457 for trunk


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

try basestring fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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.