tests/wpt/update: Fix print statements to be compatible with Python3

This commit is contained in:
marmeladema 2019-10-20 23:00:09 +01:00
parent 45817ac26e
commit 179caed30f
2 changed files with 9 additions and 5 deletions

View file

@ -2,6 +2,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from __future__ import print_function
import json
from urlparse import urljoin
requests = None
@ -46,7 +48,7 @@ class GitHub(object):
if 200 <= resp.status_code < 300:
return resp.json()
else:
print resp.status_code, resp.json()
print(resp.status_code, resp.json())
raise GitHubError(resp.status_code, resp.json())
def repo(self, owner, name):