Use empty tuple instead of None

While None works (as logging.py does "if args:" consistently), it was never
intended to be used like that.
This commit is contained in:
Florian Bruhin 2018-11-26 23:30:21 +01:00
parent 462e07a578
commit e851480a2b

View File

@ -468,7 +468,7 @@ def qt_message_handler(msg_type, context, msg):
stack = ''.join(traceback.format_stack())
else:
stack = None
record = qt.makeRecord(name, level, context.file, context.line, msg, None,
record = qt.makeRecord(name, level, context.file, context.line, msg, (),
None, func, sinfo=stack)
qt.handle(record)