micropython/ast.py | raw changeset files shortlog |
1.1 --- a/micropython/ast.py Sat Sep 04 00:55:37 2010 +0200 1.2 +++ b/micropython/ast.py Sun Sep 05 02:20:05 2010 +0200 1.3 @@ -422,6 +422,10 @@ 1.4 args = [compiler.ast.Name("None"), node.upper] 1.5 else: 1.6 args = [node.lower] 1.7 + if node.upper is None: 1.8 + args.append(compiler.ast.Name("None")) 1.9 + else: 1.10 + args.append(node.upper) 1.11 1.12 # NOTE: Need to guarantee reliable access to the slice built-in. 1.13