1
0
forked from VimPlug/jedi

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

This commit is contained in:
David Halter
2013-07-23 13:31:24 +02:00
parent bb8e864f8e
commit db17c27bb8

View File

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