解决python3.6兼容问题

This commit is contained in:
aozhiwei 2019-01-10 21:49:20 +08:00
parent 74e0ca1308
commit 6b6ddf157b
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ def httpGet(url, params={}):
real_url = url + urllib.parse.urlencode(params)
req = urllib.request.Request(real_url)
req.add_header('Private-Token', 'cRjSP2EUx1SaQYcis9W7')
data = urllib.request.urlopen(req).readall()
data = urllib.request.urlopen(req).read()
return json.loads(data.decode('utf-8'))
projects = httpGet('http://git.kingsome.cn/api/v4/projects?',

View File

@ -16,6 +16,7 @@ yum install swig-2.0.10-5.el7.x86_64
yum install php-pdo-5.4.16-45.el7.x86_64
yum install php-mysql-5.4.16-45.el7.x86_64
yum install php-pecl-redis-2.2.8-1.el7.x86_64
yum install php-mbstring-5.4.16-45.el7.x86_64
yum install v8-devel-3.14.5.10-25.el7.x86_64