Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def runcode(self, code):
try:
yield from execute.aexec(code, self.locals, self)
except SystemExit:
raise
except:
self.showtraceback()
yield from self.flush()