1
0
forked from VimPlug/jedi

Use used_names not in pgen2, but only in our parser.

This commit is contained in:
Dave Halter
2014-10-22 15:50:02 +02:00
parent e2a07752fd
commit e9f4c60e49
3 changed files with 7 additions and 7 deletions

View File

@@ -582,7 +582,7 @@ class SubModule(Scope, Module):
Depending on the underlying parser this may be a full module or just a part
of a module.
"""
__slots__ = ('path', 'global_names', 'used_names', 'temp_used_names',
__slots__ = ('path', 'global_names', 'used_names',
'line_offset', 'use_as_parent')
def __init__(self, children):
@@ -596,8 +596,6 @@ class SubModule(Scope, Module):
"""
super(SubModule, self).__init__(children)
self.path = None # Set later.
self.used_names = {}
self.temp_used_names = []
# this may be changed depending on fast_parser
self.line_offset = 0