baverman/supplement — Issue #18: AttributeError: 'tuple' object has no attribute 'insert'
Author: baverman
Created: 2012-02-28 13:10:37+00:00
State: open

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/supplement/server.py", line 65, in process
result = getattr(self, name)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/supplement/server.py", line 78, in assist
return assist(self.get_project(path), source, position, filename)
File "/usr/lib/python2.7/site-packages/supplement/assistant.py", line 310, in assist
return match, collect_names(match, names)
File "/usr/lib/python2.7/site-packages/supplement/assistant.py", line 30, in collect_names
for name_list in names:
File "/usr/lib/python2.7/site-packages/supplement/assistant.py", line 15, in get_scope_names
yield scope.get_names(lineno)
File "/usr/lib/python2.7/site-packages/supplement/scope.py", line 90, in get_names
self._names, starred_imports, sassigns = NameExtractor().process(self.node, self)
File "/usr/lib/python2.7/site-packages/supplement/names.py", line 416, in process
self.generic_visit(node)
File "/usr/lib/python2.7/ast.py", line 249, in generic_visit
self.visit(item)
File "/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node)
File "/usr/lib/python2.7/ast.py", line 249, in generic_visit
self.visit(item)
File "/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node)
File "/usr/lib/python2.7/ast.py", line 249, in generic_visit
self.visit(item)
File "/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node)
File "/usr/lib/python2.7/site-packages/supplement/names.py", line 360, in visit_Import
self.add_name(name, (ModuleName, name, set()), node.lineno)
File "/usr/lib/python2.7/site-packages/supplement/names.py", line 403, in add_name
self.names[name].insert(0, (lineno, value))
AttributeError: 'tuple' object has no attribute 'insert'