Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reload sys module at startup to regain access to sys.setdefaultencodi…

…ng method.
  • Loading branch information...
commit de9e5e66c3a8c5ea0bda4b3d51605b754e4fae10 1 parent 9c015d3
@bendmorris bendmorris authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  main.py
View
1  main.py
@@ -9,6 +9,7 @@
import os
import sys
+reload(sys)
if hasattr(sys, 'setdefaultencoding'):
sys.setdefaultencoding('latin-1')
else:

1 comment on commit de9e5e6

@ethanwhite
Owner

Let's definitely get a comment or two on all of this since it's definitely not obvious why we need to reload and even why we're doing the default encoding stuff.

Please sign in to comment.
Something went wrong with that request. Please try again.