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

    r1636 r1682  
    6666    def load(self): 
    6767        path = orngServerFiles.localpath_download(self.DOMAIN, self.FILENAME) 
    68         lines = open(path, "rb").read().split("\n")[:-1] 
     68        lines = open(path, "rb").read().splitlines()[:-1] 
    6969        self._homologs = {}  
    7070        self._homologs = dict([((h.taxonomy_id, h.gene_symbol), h) for h in [_homolog(line) for line in lines]]) 
Note: See TracChangeset for help on using the changeset viewer.