From 4a4595146f3b9da98849865e52f3f50cfb5f74c1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 3 Oct 2003 22:26:08 +0000 Subject: [PATCH] Fixed stupidity with printf (boolean) and printf (function). Changed the boolean printf to PRINTF. --- src/debug.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debug.py b/src/debug.py index bc21e04c0..780006cf2 100644 --- a/src/debug.py +++ b/src/debug.py @@ -72,8 +72,8 @@ if sys.platform == 'win32': else: colorterm = True -# printf: True if printf debugging messages should be printed. -printf = False +# PRINTF: True if printf debugging messages should be printed. +PRINTF = False # minimumPriority: Lowest priority logged; # One of {'verbose', 'low', 'normal', 'high'}. @@ -209,7 +209,7 @@ def msg(s, priority='low'): _debugfd.flush() def printf(msg): - if printf: + if PRINTF: print '*** ' + str(msg) def methodNamePrintf(obj, methodName):