Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix actions, python print parentheses #3883

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions CI/ghApiClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ def readUrl(name):
jcont = json.loads(content)
return jcont;
except urllib2.HTTPError, e:
print 'HTTPError = ' + str(e.code)
print ('HTTPError = ' + str(e.code))
raise e
except urllib2.URLError, e:
print 'URLError = ' + str(e.reason)
print ('URLError = ' + str(e.reason))
raise e
except httplib.HTTPException, e:
print 'HTTPException = ' + str(e)
print ('HTTPException = ' + str(e))
raise e
except Exception:
import traceback
print 'generic exception: ' + traceback.format_exc()
print ('generic exception: ' + traceback.format_exc())
raise IOError

def postUrl(name, body):
Expand All @@ -43,16 +43,16 @@ def postUrl(name, body):
jcont = json.loads(content)
return jcont;
except urllib2.HTTPError, e:
print 'HTTPError = ' + str(e.code)
print str(e)
print ('HTTPError = ' + str(e.code))
print (str(e))
raise e
except urllib2.URLError, e:
print 'URLError = ' + str(e.reason)
print ('URLError = ' + str(e.reason))
raise e
except httplib.HTTPException, e:
print 'HTTPException = ' + str(e)
print ('HTTPException = ' + str(e))
raise e
except Exception:
import traceback
print 'generic exception: ' + traceback.format_exc()
print ('generic exception: ' + traceback.format_exc())
raise IOError
2 changes: 1 addition & 1 deletion CI/lastRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def getLastReleaseTag():
# main
def main():
result = getLastReleaseTag()
print result
print (result)

# here start main
main()