Changeset 7500:796cb704cf02 in orange


Ignore:
Timestamp:
02/04/11 18:27:02 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
1cd71dc07aafb552c80e48c5ad21ca0d58ac650a
Message:
  • preserve text prefixes (whitespace, comments)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/fixes/fix_changed_names.py

    r7497 r7500  
    229229            node = member[0] 
    230230            head = head[0] 
    231 #            if tail: 
    232 #                tail = tail[0] 
    233 #            else: 
    234 #                tail = None 
    235231             
    236232            new_name = unicode(self.mapping[module + "." + node.value]) 
     
    241237                tail = [t.clone() for t in  tail] 
    242238            new = self.package_tree(new_name) 
    243             new = pytree.Node(syms.power, new + tail) 
     239            new = pytree.Node(syms.power, new + tail, prefix=head.prefix) 
    244240             
    245241            # Make sure the proper package is imported 
Note: See TracChangeset for help on using the changeset viewer.