From db17c27bb8b8e2078376e81bef4baa90a4125eaa Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 23 Jul 2013 13:31:24 +0200 Subject: [PATCH] removed old very strange string casts, that didn't really make sense and even though it mentioned a test, it wouldn't break after deleting it --- jedi/parsing_representation.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index fe50409e..b71f38c0 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -1210,13 +1210,7 @@ class Call(Simple): if self.type == Call.NAME: s = self.name.get_code() else: - 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') - else: - s = '' if self.name is None else repr(self.name) + s = '' if self.name is None else repr(self.name) if self.execution is not None: s += self.execution.get_code() if self.next is not None: