Commits

jayven committed 4652ddb

Fix a bug

  • Participants
  • Parent commits 3e5cd8d
  • Branches add_hotlog

Comments (0)

Files changed (2)

 # vim: set ai et si ts=4 sts=4 sw=4:
 
 import debugger
+
+# affect everywhere
+import __builtin__
+__builtin__.__dict__['hotlog'] = debugger.hotlog
 def hotlog(s):
     global hotlog_data
     hotlog_data += '\n[%s] %s' % (datetime.now().strftime("%F %X"), s)
-# affect everywhere
-import __builtin__
-__builtin__.__dict__['hotlog'] = hotlog
-
 
 class DebugConsole(osv.osv_memory):