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/orng/addOnPack.py

    r10581 r10674  
    144144            QTextEdit.focusOutEvent(control, ev) 
    145145        for listEdit in [self.e_tags, self.e_aauthors, self.e_acontributors, self.e_aorganizations]: 
    146             listEdit.parseEntries = lambda control=listEdit: [entry for entry in map(lambda x: x.strip(), unicode(control.toPlainText()).split("\n")) if entry] 
     146            listEdit.parseEntries = lambda control=listEdit: [entry for entry in map(lambda x: x.strip(), unicode(control.toPlainText()).splitlines()) if entry] 
    147147            listEdit.focusOutEvent = formatList 
    148148     
Note: See TracChangeset for help on using the changeset viewer.