diff --git a/ci/main.py b/ci/main.py index 2e2f97e..504d41a 100644 --- a/ci/main.py +++ b/ci/main.py @@ -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')