Mercurial > odfcast
diff checkclient.py @ 99:349d49bb69f4
Porting on python3
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Tue, 19 Jun 2018 15:07:56 +0200 |
parents | 3928af61b4ce |
children |
line wrap: on
line diff
--- a/checkclient.py Thu Jun 07 14:33:44 2018 +0200 +++ b/checkclient.py Tue Jun 19 15:07:56 2018 +0200 @@ -26,11 +26,11 @@ r = requests.post(url, files=files) if r.status_code == 200: - print "OK" + print("OK") else: - print "An error has occured" - print r.status_code, r.headers - print r.text + print("An error has occured") + print((r.status_code, r.headers)) + print((r.text)) sys.exit(2)