From 6b6ddf157b1ca75563ef77bbf9d5116d88185f7f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 10 Jan 2019 21:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3python3.6=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitlab/githelper.py | 2 +- scripts/install-deps.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gitlab/githelper.py b/gitlab/githelper.py index ac52ab5..1968ab2 100644 --- a/gitlab/githelper.py +++ b/gitlab/githelper.py @@ -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?', diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index e774eaf..64f13c6 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -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