Changeset 1719:6e8861564778 in orange-bioinformatics for _bioinformatics/obiOMIM.py


Ignore:
Timestamp:
08/31/12 14:09:46 (20 months ago)
Author:
markotoplak
Branch:
default
Message:

Fixed update scripts for MeSH, GO, HomoloGene, NCBI_geneinfo, OMIM, PPI. Moved wget to Orange.utils.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiOMIM.py

    r1682 r1719  
    4747                os.mkdir(cls.DEFAULT_DATABASE_PATH) 
    4848            file = open(os.path.join(cls.DEFAULT_DATABASE_PATH, "morbidmap"), "wb") 
    49         elif type(file) in [str, unicode]: 
     49        elif isinstance(file, basestring): 
    5050            file = open(file, "wb") 
    5151        file.write(data) 
     52        file.close() 
    5253         
    5354    @classmethod 
Note: See TracChangeset for help on using the changeset viewer.