1.1 --- a/importer.py Mon Oct 17 23:26:22 2016 +0200
1.2 +++ b/importer.py Wed Oct 19 16:37:01 2016 +0200
1.3 @@ -69,6 +69,7 @@
1.4 self.classes = {}
1.5 self.function_parameters = {}
1.6 self.function_defaults = {}
1.7 + self.function_locals = {}
1.8 self.function_targets = {}
1.9 self.function_arguments = {}
1.10
2.1 --- a/inspector.py Mon Oct 17 23:26:22 2016 +0200
2.2 +++ b/inspector.py Wed Oct 19 16:37:01 2016 +0200
2.3 @@ -593,11 +593,13 @@
2.4 # Copy and propagate the parameters.
2.5
2.6 self.importer.function_parameters[function_name] = \
2.7 - self.function_parameters[function_name] = argnames[:]
2.8 + self.function_parameters[function_name] = argnames[:]
2.9
2.10 # Define all arguments/parameters in the local namespace.
2.11
2.12 - locals = self.function_locals[function_name] = {}
2.13 + locals = \
2.14 + self.importer.function_locals[function_name] = \
2.15 + self.function_locals[function_name] = {}
2.16
2.17 # Insert "self" into method locals.
2.18
3.1 --- a/modules.py Mon Oct 17 23:26:22 2016 +0200
3.2 +++ b/modules.py Wed Oct 19 16:37:01 2016 +0200
3.3 @@ -504,7 +504,8 @@
3.4 function, name, value = self._get_fields(line, 3)
3.5 init_item(self.function_locals, function, dict)
3.6 if name != "{}":
3.7 - self.function_locals[function][name] = decode_reference(value)
3.8 + self.importer.function_locals[function] = \
3.9 + self.function_locals[function][name] = decode_reference(value)
3.10 line = f.readline().rstrip()
3.11
3.12 def _get_function_targets(self, f):