Ignore some python warnings for now

shhhh Qt5
This commit is contained in:
Nathan Woodrow 2017-09-04 12:29:54 +10:00
parent fadfb3562a
commit f0e53db254

View File

@ -59,7 +59,16 @@ warnings.simplefilter('default')
warnings.filterwarnings("ignore", "the sets module is deprecated")
ignorelist = [
"objcreator.py:152: DeprecationWarning: 'U' mode is deprecated"
"DeprecationWarning: the imp module is deprecated in favour of importlib;"
]
def showWarning(message, category, filename, lineno, file=None, line=None):
for ignore in ignorelist:
if ignore in message:
return
stk = ""
for s in traceback.format_stack()[:-2]:
if hasattr(s, 'decode'):