Merge pull request #41 from cclauss/patch-1

reload() was moved into importlib in Python 3
This commit is contained in:
JG
2018-03-02 17:55:05 +08:00
committed by GitHub

View File

@ -4,10 +4,11 @@ import json, sys
import sqlite3
from collections import OrderedDict
reload(sys)
sys.setdefaultencoding('utf-8')
try: # Python 2
reload(sys)
sys.setdefaultencoding('utf-8')
except NameError: # Python 3
pass
c = sqlite3.connect('ci.db')