Ignore:
Timestamp:
03/28/12 20:31:22 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Replaced split('\n') with splitlines().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Data/OWSave.py

    r10462 r10674  
    8181 
    8282#        filename, selectedFilter = QFileDialog.getSaveFileNameAndFilter(self, 'Save Orange Data File', startfile, 
    83 #                        self.dlgFormats, self.dlgFormats.split("\n")[0]) 
     83#                        self.dlgFormats, self.dlgFormats.splitlines()[0]) 
    8484#        filename = str(filename) 
    8585#       The preceding lines should work as per API, but do not; it's probably a PyQt bug as per March 2010. 
     
    8787#       (As a consequence, filter selection is not taken into account when appending a default extension.) 
    8888        filename, selectedFilter = QFileDialog.getSaveFileName(self, 'Save Orange Data File', startfile, 
    89                          self.dlgFormats), self.dlgFormats.split("\n")[0] 
     89                         self.dlgFormats), self.dlgFormats.splitlines()[0] 
    9090        filename = unicode(filename) 
    9191        if not filename or not os.path.split(filename)[1]: 
Note: See TracChangeset for help on using the changeset viewer.