mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
python 2.5 compatibility, works, but tests fail, because certain thing don't exist in 2.5 (like int.real)
This commit is contained in:
@@ -214,7 +214,7 @@ class Parser(CachedModule):
|
||||
# variables
|
||||
for name, value in stmts.items():
|
||||
if type(value).__name__ == 'file':
|
||||
value = 'file'
|
||||
value = 'open()'
|
||||
elif type(value).__name__ in ['int', 'bool', 'float',
|
||||
'dict', 'list', 'tuple']:
|
||||
value = repr(value)
|
||||
|
||||
Reference in New Issue
Block a user