Commits

James Mills  committed 0caeccc

Fixed an incompatibility for Python2/3 with WebConsole app

  • Participants
  • Parent commits f5236f8

Comments (0)

Files changed (1)

File circuits/web/apps/webconsole/__init__.py

 import traceback
 
 from circuits import handler
+from circuits.six import exec_
 from circuits.web import Controller
 from circuits.tools import tryimport
 
         sys.stdout = sys.stderr = out
         try:
             try:
-                exec code in self.locals
+                exec_(code, None, self.locals)
             except:
                 result = traceback.format_exc()
             else: