Ignore:
Timestamp:
03/08/12 12:34:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
359355b6e3f6649dbd100ad0730428030d13b649
Message:

Added unicode filename support for the rest of save/load widget dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWBaseWidget.py

    r10018 r10466  
    471471                except IOError: 
    472472                    return  
    473         if type(file) == str: 
     473        if isinstance(file, basestring): 
    474474            if os.path.exists(file): 
    475475                return open(file, "r") 
     
    522522            if file==None: 
    523523                file = os.path.join(self.widgetSettingsDir, self.captionTitle + ".ini") 
    524             if type(file) == str: 
     524            if isinstance(file, basestring): 
    525525                file = open(file, "w") 
    526526            cPickle.dump(settings, file) 
Note: See TracChangeset for help on using the changeset viewer.