Changeset 7496:f15113f8b54e in orange


Ignore:
Timestamp:
02/04/11 18:11:42 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
9551d6fdc3b661375d07be93b7706a66e36cff8f
Message:
  • better handling of tails in fix_changed_names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/fixes/fix_changed_names.py

    r7494 r7496  
    220220            node = member[0] 
    221221            head = head[0] 
    222             tail = tail[0] 
     222#            if tail: 
     223#                tail = tail[0] 
     224#            else: 
     225#                tail = None 
    223226             
    224227            new_name = unicode(self.mapping[module + "." + node.value]) 
     
    226229            syms = self.syms 
    227230             
    228             tail = tail.clone() 
     231            if tail: 
     232                tail = [t.clone() for t in  tail] 
    229233            new = self.package_tree(new_name) 
    230             new = pytree.Node(syms.power, new + [tail]) 
     234            new = pytree.Node(syms.power, new + tail) 
    231235             
    232236            # Make sure the proper package is imported 
Note: See TracChangeset for help on using the changeset viewer.