Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added lambda capability to log

  • Loading branch information...
commit 1f6c64aceb58ce33d42cff100dd6b3c2ce7e2eae 1 parent e520d2f
cantora authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  pyc_log.py
View
3  pyc_log.py
@@ -20,5 +20,8 @@ def log_set_quiet():
def log(str):
global ch
if ch.level == logging.DEBUG:
+ if hasattr(str, '__call__'):
+ str = str()
+
print str
Please sign in to comment.
Something went wrong with that request. Please try again.