Changeset 1682:2e2c671e4300 in orange-bioinformatics for _bioinformatics/obiOMIM.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/obiOMIM.py

    r1636 r1682  
    6262    def load(self, filename): 
    6363        file = open(filename, "rb") 
    64         lines = file.read().split("\n") 
     64        lines = file.read().splitlines() 
    6565        self._disease_dict = dict([(disease(line), line) for line in lines if line]) 
    6666         
Note: See TracChangeset for help on using the changeset viewer.