Convert more things to Python 3 idioms

This commit is contained in:
Peter Law committed 2021-07-24 17:12:34 +01:00
1 parent 6ad62e18d2
commit 75624f0e3c
2 files changed
+25 -22

No files matched your search

+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: