Use six to standardize imports between Python 2 and Python 3

This commit is contained in:
Labrys 2016-06-04 23:53:26 -04:00
commit cf1ae938fc
4 changed files with 33 additions and 34 deletions

View file

@ -1,4 +1,6 @@
# coding=utf-8
from six.moves import reload_module
import locale
import os
import re
@ -252,7 +254,7 @@ def initialize(section=None):
SYS_ENCODING = 'UTF-8'
if not hasattr(sys, "setdefaultencoding"):
reload(sys)
reload_module(sys)
try:
# pylint: disable=E1101