From adc7a559cfcaa486cb76e6b9480d66af41f2255a Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 23 Feb 2013 08:58:15 +0430 Subject: [PATCH] python3.2 compatibility --- jedi/parsing_representation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index e18668e1..08aae84b 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -1107,7 +1107,8 @@ class Call(Simple): if self.type == Call.NAME: s = self.name.get_code() else: - if isinstance(self.name, str) and "'" not in self.name: + if not is_py3k and isinstance(self.name, str)\ + and "'" not in self.name: # This is a very rough spot, because of repr not supporting # unicode signs, see `test_unicode_script`. s = "'%s'" % unicode(self.name, 'UTF-8')