Changeset 1682:2e2c671e4300 in orange-bioinformatics for _bioinformatics/obiKEGG2/entry/fields.py


Ignore:
Timestamp:
06/12/12 11:15:18 (23 months ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Replaced split(\n) with splitlines (closes #1160).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiKEGG2/entry/fields.py

    r1636 r1682  
    129129    def _convert(self): 
    130130        # Some dblinks can span multiple lines but are always 'indented'  
    131         links = DBSimpleField._convert(self).replace("\n ", "").split("\n") 
     131        links = DBSimpleField._convert(self).replace("\n ", "").splitlines() 
    132132        links = [tuple(link.split(": ", 1)) for link in links] 
    133133        links = [(key, [v for v in values.split(" ") if v]) \ 
Note: See TracChangeset for help on using the changeset viewer.