forked from VimPlug/jedi
fix a get_code problem for instances/statements, which is not needed there, because get_code should only be called on pure parsing_representation objects
This commit is contained in:
@@ -715,7 +715,7 @@ class Statement(Simple):
|
||||
|
||||
def get_code(self, new_line=True):
|
||||
def assemble(command_list, assignment=None):
|
||||
pieces = [c.get_code() if isinstance(c, Base) else c
|
||||
pieces = [c.get_code() if isinstance(c, Simple) else unicode(c)
|
||||
for c in command_list]
|
||||
if assignment is None:
|
||||
return ''.join(pieces)
|
||||
|
||||
Reference in New Issue
Block a user