Removed the whole dealio with PRINTF and whatnot.

This commit is contained in:
Jeremy Fincher 2003-10-10 06:03:02 +00:00
parent 9f2352fbea
commit 7fe7c03d81
2 changed files with 2 additions and 7 deletions

View File

@ -72,9 +72,6 @@ if sys.platform == 'win32':
else: else:
colorterm = True colorterm = True
# PRINTF: True if printf debugging messages should be printed.
PRINTF = False
# minimumPriority: Lowest priority logged; # minimumPriority: Lowest priority logged;
# One of {'verbose', 'low', 'normal', 'high'}. # One of {'verbose', 'low', 'normal', 'high'}.
minimumPriority = 'verbose' minimumPriority = 'verbose'
@ -221,9 +218,8 @@ def msg(s, priority='low'):
_debugfd.flush() _debugfd.flush()
def printf(msg): def printf(msg):
"""Used for simple printf debugging. Can be turned off via PRINTF.""" """Used for simple printf debugging."""
if PRINTF: print '*** ' + str(msg)
print '*** ' + str(msg)
def methodNamePrintf(obj, methodName): def methodNamePrintf(obj, methodName):
"""Does a debug.printf with the appropriate method name.""" """Does a debug.printf with the appropriate method name."""

View File

@ -50,7 +50,6 @@ import unittest
import debug import debug
debug.stderr = False debug.stderr = False
debug.PRINTF = True
import world import world
import ircdb import ircdb