Use feature detection instead of version detection

pull/101/head
cclauss 2019-01-07 09:11:31 +01:00 committed by GitHub
parent 378bb75bf8
commit 4371b0b3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -7,10 +7,12 @@ import sys
import csv
import requests
from config import urlConf
if sys.version_info.major == 2:
try:
reload(sys)
sys.setdefaultencoding('utf-8')
except NameError:
pass
class CDNProxy:
def __init__(self, host=None):