Changeset 151

Show
Ignore:
Timestamp:
10/03/06 09:35:18 (2 years ago)
Author:
grig
Message:

Replaced occurences of variables named 'as' with 'as_word', so that it works with Python 2.6. Discovered this issue by running the unit tests in a pybot.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cheesecake/ast_pp.py

    r150 r151  
    114114    def visitImport(self, node): 
    115115        self.w('import ') 
    116         for (mod, as) in node.names: 
     116        for (mod, as_word) in node.names: 
    117117            self.w(mod) 
    118             if as is not None: 
     118            if as_word is not None: 
    119119                self.w(' as ') 
    120                 self.w(as
     120                self.w(as_word
    121121            self.w(', ') 
    122122        self.nl() 
     
    126126        self.w(node.modname) 
    127127        self.w(' import ') 
    128         for (mod, as) in node.names: 
     128        for (mod, as_word) in node.names: 
    129129            self.w(mod) 
    130             if as is not None: 
     130            if as_word is not None: 
    131131                self.w(' as ') 
    132                 self.w(as
     132                self.w(as_word
    133133            self.w(', ') 
    134134        self.nl()