Changeset 8018:f0a9af9df5ce in orange


Ignore:
Timestamp:
06/14/11 14:25:31 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
1b47c5aabaa1661d3535222e2647810a12f26aec
Message:

Fix a bug related to old version of NetworkX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/network/readwrite.py

    r8017 r8018  
    155155    """ 
    156156     
    157     return _wrap(rw.read_gpickle(path)) 
    158  
    159 _add_doc(read_gpickle, rw.read_gpickle) 
     157    return _wrap(rw.gpickle.read_gpickle(path)) 
     158 
     159_add_doc(read_gpickle, rw.gpickle.read_gpickle) 
    160160 
    161161def write_gpickle(G, path): 
     
    164164    """ 
    165165     
    166     rw.write_gpickle(G, path) 
    167  
    168 _add_doc(write_gpickle, rw.write_gpickle) 
     166    rw.gpickle.write_gpickle(G, path) 
     167 
     168_add_doc(write_gpickle, rw.gpickle.write_gpickle) 
    169169 
    170170def read_pajek(path, encoding='UTF-8'): 
     
    227227        fh.write(line.encode(encoding)) 
    228228 
    229 _add_doc(write_pajek, rw.write_pajek) 
     229_add_doc(write_pajek, rw.pajek.write_pajek) 
    230230 
    231231def parse_pajek(lines): 
     
    293293         
    294294 
    295 _add_doc(generate_pajek, rw.generate_pajek) 
     295_add_doc(generate_pajek, rw.pajek.generate_pajek) 
    296296         
    297297def read_gml(path, encoding='latin-1', relabel=False): 
     
    300300    """ 
    301301     
    302     return _wrap(rw.read_gml(path, encoding, relabel)) 
    303  
    304 _add_doc(read_gml, rw.read_gml) 
     302    return _wrap(rw.gml.read_gml(path, encoding, relabel)) 
     303 
     304_add_doc(read_gml, rw.gml.read_gml) 
    305305 
    306306def write_gml(G, path): 
     
    309309    """ 
    310310     
    311     rw.write_gml(G, path) 
    312  
    313 _add_doc(write_gml, rw.write_gml) 
     311    rw.gml.write_gml(G, path) 
     312 
     313_add_doc(write_gml, rw.gml.write_gml) 
Note: See TracChangeset for help on using the changeset viewer.