[pypy-svn] r39623 - pypy/dist/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Thu Mar 1 12:31:03 CET 2007


Author: fijal
Date: Thu Mar  1 12:31:01 2007
New Revision: 39623

Modified:
   pypy/dist/pypy/translator/goal/targetpypystandalone.py
Log:
Kill debug a bit


Modified: pypy/dist/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpypystandalone.py	(original)
+++ pypy/dist/pypy/translator/goal/targetpypystandalone.py	Thu Mar  1 12:31:01 2007
@@ -12,13 +12,16 @@
 thisdir = py.magic.autopath().dirpath()
 app_basic_example_path = str(thisdir.join("app_basic_example.py"))
 
+DEBUG = False
+
 try:
     this_dir = os.path.dirname(__file__)
 except NameError:
     this_dir = os.path.dirname(sys.argv[0])
 
-def debug(msg): 
-    os.write(2, "debug: " + msg + '\n')
+def debug(msg):
+    if DEBUG:
+        os.write(2, "debug: " + msg + '\n')
 
 # __________  Entry point  __________
 



More information about the Pypy-commit mailing list