1
0
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:
David Halter
2013-02-16 23:38:07 +04:30
parent fb0ea354ac
commit 8fd3910958

View File

@@ -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)