Mercurial > odfcast > odfcast
diff castclient.py @ 99:349d49bb69f4
Porting on python3
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Tue, 19 Jun 2018 15:07:56 +0200 |
parents | aee742cdd604 |
children |
line wrap: on
line diff
--- a/castclient.py Thu Jun 07 14:33:44 2018 +0200 +++ b/castclient.py Tue Jun 19 15:07:56 2018 +0200 @@ -37,11 +37,11 @@ if r.status_code == 200: with open(outfilename, "wb") as f: f.write(r.content) - 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)