mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Use six to standardize imports between Python 2 and Python 3
This commit is contained in:
parent
382d108db2
commit
cf1ae938fc
4 changed files with 33 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue