mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
tests/wpt/update: Fix print statements to be compatible with Python3
This commit is contained in:
parent
45817ac26e
commit
179caed30f
2 changed files with 9 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue