Ignore:
Timestamp:
03/08/12 12:36:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
28ec1977e55b2735fc8810aa5082289dd28bc4e0
Message:

Unicode filename support for saving a tree to .dot format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/orngTree.py

    r9671 r10467  
    3131    DEPRECATED. Replaced by :obj:`TreeClassifier.dump`. 
    3232    """ 
    33     fle = type(fileName) == str and file(fileName, "wt") or fileName 
     33    fle = isinstance(fileName, basestring) and file(fileName, "wt") or fileName 
    3434 
    3535    _TreeDumper(leafStr, nodeStr, argkw.get("userFormats", []) +  
Note: See TracChangeset for help on using the changeset viewer.