1
0
forked from VimPlug/jedi

Fix Statement.get_code

Parsed Statement.assignment_details must be used.  Otherwise,
incorrect code is returned at the first time Statement.get_code
is called.
This commit is contained in:
Takafumi Arakaki
2013-02-25 01:43:22 +01:00
parent e1e2ed8fcc
commit 4ba9fd2b68
2 changed files with 1 additions and 2 deletions

View File

@@ -715,7 +715,7 @@ class Statement(Simple):
return ''.join(pieces)
return '%s %s ' % (''.join(pieces), assignment)
code = ''.join(assemble(*a) for a in self._assignment_details)
code = ''.join(assemble(*a) for a in self.assignment_details)
code += assemble(self.get_commands())
if new_line: