mirror of https://github.com/testerSunshine/12306
Use feature detection instead of version detection
parent
378bb75bf8
commit
4371b0b3b0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue