Skip to content

Commit 662da05

Browse files
committed
fix actions, python print parentheses
1 parent 8f16944 commit 662da05

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CI/ghApiClient.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ def readUrl(name):
1919
jcont = json.loads(content)
2020
return jcont;
2121
except urllib2.HTTPError, e:
22-
print 'HTTPError = ' + str(e.code)
22+
print ('HTTPError = ' + str(e.code))
2323
raise e
2424
except urllib2.URLError, e:
25-
print 'URLError = ' + str(e.reason)
25+
print ('URLError = ' + str(e.reason))
2626
raise e
2727
except httplib.HTTPException, e:
28-
print 'HTTPException = ' + str(e)
28+
print ('HTTPException = ' + str(e))
2929
raise e
3030
except Exception:
3131
import traceback
32-
print 'generic exception: ' + traceback.format_exc()
32+
print ('generic exception: ' + traceback.format_exc())
3333
raise IOError
3434

3535
def postUrl(name, body):
@@ -43,16 +43,16 @@ def postUrl(name, body):
4343
jcont = json.loads(content)
4444
return jcont;
4545
except urllib2.HTTPError, e:
46-
print 'HTTPError = ' + str(e.code)
47-
print str(e)
46+
print ('HTTPError = ' + str(e.code))
47+
print (str(e))
4848
raise e
4949
except urllib2.URLError, e:
50-
print 'URLError = ' + str(e.reason)
50+
print ('URLError = ' + str(e.reason))
5151
raise e
5252
except httplib.HTTPException, e:
53-
print 'HTTPException = ' + str(e)
53+
print ('HTTPException = ' + str(e))
5454
raise e
5555
except Exception:
5656
import traceback
57-
print 'generic exception: ' + traceback.format_exc()
57+
print ('generic exception: ' + traceback.format_exc())
5858
raise IOError

CI/lastRelease.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def getLastReleaseTag():
1313
# main
1414
def main():
1515
result = getLastReleaseTag()
16-
print result
16+
print (result)
1717

1818
# here start main
1919
main()

0 commit comments

Comments
 (0)