Skip to content

Commit

Permalink
Revert "Ignore some python warnings for now"
Browse files Browse the repository at this point in the history
Doesn't work on all platforms

This reverts commit f0e53db.
  • Loading branch information
NathanW2 committed Sep 4, 2017
1 parent 088e58a commit df7c3df
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/utils.py
Expand Up @@ -59,16 +59,7 @@
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'):
Expand Down

0 comments on commit df7c3df

Please sign in to comment.