syntax change to exec

This commit is contained in:
c-holtermann 2019-04-13 18:16:12 +02:00
parent cc7673ccc8
commit 5a73b9afd4

View File

@ -155,7 +155,7 @@ class Shell:
# Command output
print(repr(r))
except SyntaxError:
exec(self.command in self.globals)
exec(str(self.command), self.globals)
except:
if hasattr (sys, 'last_type') and sys.last_type == SystemExit:
console.quit()