diff python/ide.py @ 258:04c19282a5aa

Added register allocator
author Windel Bouwman
date Mon, 05 Aug 2013 19:46:11 +0200
parents 225f444019b1
children ac603eb66b63
line wrap: on
line diff
--- a/python/ide.py	Sun Aug 04 18:34:06 2013 +0200
+++ b/python/ide.py	Mon Aug 05 19:46:11 2013 +0200
@@ -16,13 +16,11 @@
 import zcc
 import outstream
 
-logformat='%(asctime)s|%(levelname)s|%(name)s|%(msg)s'
-
 class BuildOutput(QTextEdit):
     """ Build output component """
     def __init__(self, parent=None):
         super(BuildOutput, self).__init__(parent)
-        fmt = logging.Formatter(fmt=logformat)
+        fmt = logging.Formatter(fmt=zcc.logformat)
         class MyHandler(logging.Handler):
             def emit(self2, x):
                 self.append(str(fmt.format(x)))
@@ -316,7 +314,7 @@
 
 
 if __name__ == '__main__':
-    logging.basicConfig(format=logformat, level=logging.DEBUG)
+    logging.basicConfig(format=zcc.logformat, level=logging.DEBUG)
     app = QApplication(sys.argv)
     ide = Ide()
     ide.show()