Skip to content

Commit

Permalink
Proposed fix for SeattleTestbed#114, promote warnings to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaalbert committed Mar 4, 2016
1 parent 772dd5e commit 3af24d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@
import warnings
warnings.simplefilter('ignore')
import compiler # Required for the code safety check
warnings.resetwarnings()

# Re-enable warnings, and promote them to exceptions.
# (This makes things like `SyntaxWarning`s trigger tracebacks
# rather than messages to stderr. See SeattleTestbed/repy_v2#114)
warnings.simplefilter('error')

import UserDict # This is to get DictMixin
import platform # This is for detecting Nokia tablets
Expand Down

0 comments on commit 3af24d2

Please sign in to comment.