Lichen

Change of translator.py

728:8e3fdfc663c9
translator.py normal-function-parameters
     1.1 --- a/translator.py	Sat Mar 11 01:04:34 2017 +0100
     1.2 +++ b/translator.py	Mon Mar 13 17:53:19 2017 +0100
     1.3 @@ -869,7 +869,7 @@
     1.4  
     1.5              # Produce an appropriate access to an attribute's value.
     1.6  
     1.7 -            name_to_value = "%s.value" % name
     1.8 +            name_to_value = "%s.value" % encode_path(name)
     1.9  
    1.10              # Write a test that raises a TypeError upon failure.
    1.11  
    1.12 @@ -1440,7 +1440,7 @@
    1.13          # Find any invocation or alias details.
    1.14  
    1.15          name = self.get_name_for_tracking(n.name, is_global=is_global)
    1.16 -        location = not expr and self.get_access_location(name)
    1.17 +        location = not expr and self.get_access_location(name) or None
    1.18  
    1.19          # Mark any local assignments as volatile in exception blocks.
    1.20