mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 16:09:24 +01:00
Fixed stupidity with printf (boolean) and printf (function). Changed the boolean printf to PRINTF.
This commit is contained in:
parent
3be0c261d3
commit
4a4595146f
@ -72,8 +72,8 @@ if sys.platform == 'win32':
|
|||||||
else:
|
else:
|
||||||
colorterm = True
|
colorterm = True
|
||||||
|
|
||||||
# printf: True if printf debugging messages should be printed.
|
# PRINTF: True if printf debugging messages should be printed.
|
||||||
printf = False
|
PRINTF = False
|
||||||
|
|
||||||
# minimumPriority: Lowest priority logged;
|
# minimumPriority: Lowest priority logged;
|
||||||
# One of {'verbose', 'low', 'normal', 'high'}.
|
# One of {'verbose', 'low', 'normal', 'high'}.
|
||||||
@ -209,7 +209,7 @@ def msg(s, priority='low'):
|
|||||||
_debugfd.flush()
|
_debugfd.flush()
|
||||||
|
|
||||||
def printf(msg):
|
def printf(msg):
|
||||||
if printf:
|
if PRINTF:
|
||||||
print '*** ' + str(msg)
|
print '*** ' + str(msg)
|
||||||
|
|
||||||
def methodNamePrintf(obj, methodName):
|
def methodNamePrintf(obj, methodName):
|
||||||
|
Loading…
Reference in New Issue
Block a user