Convert more things to Python 3 idioms

This commit is contained in:
Peter Law
2021-07-24 17:12:34 +01:00
parent 6ad62e18d2
commit 75624f0e3c
2 changed files with 25 additions and 22 deletions
+1 -4
View File
@@ -106,10 +106,7 @@ def dbg(message, *args, color='GREEN'):
debug_function(color, i + 'dbg: ' + message % tuple(repr(a) for a in args))
def warning(message, *args, **kwargs):
format = kwargs.pop('format', True)
assert not kwargs
def warning(message, *args, format=True):
if debug_function and enable_warning:
i = ' ' * _debug_indent
if format: