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

    r1636 r1682  
    11571157        text = open(orngServerFiles.localpath_download("PPI", "BIOGRID-ALL.tab"), "rb").read() 
    11581158        text = text.split("SOURCE\tPUBMED_ID\tORGANISM_A_ID\tORGANISM_B_ID\n", 1)[-1] 
    1159         self.interactions = [BioGRIDInteraction(line) for line in text.split("\n") if line.strip()] 
     1159        self.interactions = [BioGRIDInteraction(line) for line in text.splitlines() if line.strip()] 
    11601160         
    11611161        self.protein_interactions = defaultdict(set) 
Note: See TracChangeset for help on using the changeset viewer.