Ignore:
Timestamp:
02/06/12 20:59:56 (2 years ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
rebase_source:
1150c39ea9bae11b843a46420e319bd7b23086bd
Message:

some pycharm fixes (beautify)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/fixes/fix_changed_names.py

    r9857 r9858  
    2222from lib2to3 import fixer_util 
    2323from lib2to3 import pytree 
    24 from lib2to3.fixer_util import Name, Dot, Node, attr_chain, touch_import 
     24from lib2to3.fixer_util import Name, Dot, touch_import 
    2525 
    2626# Keys must be in the form of 'orange.name' not name or orange.bla.name  
     
    183183           "orange.GraphAsMatrix":"Orange.network.GraphAsMatrix", 
    184184           "orange.GraphAsTree":"Orange.network.GraphAsTree", 
    185  
    186            "orngEnsemble.MeasureAttribute_randomForests":"Orange.ensemble.forest.ScoreFeature", 
    187185 
    188186           "orange.TreeLearner": "Orange.classification.tree.TreeLearner", 
     
    401399           "orngMisc.selectBestIndex":"Orange.misc.selection.select_best_index", 
    402400           "orngMisc.compare2_firstBigger":"Orange.misc.selection.compare_first_bigger", 
    403            "orngMisc.compare2_firstBigger":"Orange.misc.selection.compare_first_bigger", 
    404401           "orngMisc.compare2_firstSmaller":"Orange.misc.selection.compare_first_smaller", 
    405402           "orngMisc.compare2_lastBigger":"Orange.misc.selection.compare_last_bigger", 
     
    627624        """ 
    628625        path = package.split('.') 
    629         nodes = [] 
    630         nodes.append(Name(path[0])) 
     626        nodes = [Name(path[0])] 
    631627        for name in path[1:]: 
    632628            new = pytree.Node(self.syms.trailer, [Dot(), Name(name)]) 
Note: See TracChangeset for help on using the changeset viewer.