Skip to content

Commit

Permalink
Merge pull request #3884 from swagger-api/python3-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma authored Feb 17, 2021
2 parents cd120a8 + 2fabb26 commit acff221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7
python-version: 2.x
- name: Set up Java 8
uses: actions/setup-java@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7
python-version: 2.x
- name: Set up Java 8
uses: actions/setup-java@v1
with:
Expand Down
12 changes: 6 additions & 6 deletions CI/ghApiClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def readUrl(name):
content = urllib2.urlopen(request).read()
jcont = json.loads(content)
return jcont;
except urllib2.HTTPError, e:
except urllib2.HTTPError as e:
print ('HTTPError = ' + str(e.code))
raise e
except urllib2.URLError, e:
except urllib2.URLError as e:
print ('URLError = ' + str(e.reason))
raise e
except httplib.HTTPException, e:
except httplib.HTTPException as e:
print ('HTTPException = ' + str(e))
raise e
except Exception:
Expand All @@ -42,14 +42,14 @@ def postUrl(name, body):
content = urllib2.urlopen(request, body).read()
jcont = json.loads(content)
return jcont;
except urllib2.HTTPError, e:
except urllib2.HTTPError as e:
print ('HTTPError = ' + str(e.code))
print (str(e))
raise e
except urllib2.URLError, e:
except urllib2.URLError as e:
print ('URLError = ' + str(e.reason))
raise e
except httplib.HTTPException, e:
except httplib.HTTPException as e:
print ('HTTPException = ' + str(e))
raise e
except Exception:
Expand Down

0 comments on commit acff221

Please sign in to comment.