From 8fd39109584fce8d03b0f0d8caac1f3df6f986bd Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 16 Feb 2013 23:38:07 +0430 Subject: [PATCH] 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 --- jedi/parsing_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index 23396671..43b82d5d 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -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)