diff mergeclient.py @ 99:349d49bb69f4

Porting on python3
author Magnus Schieder <mschieder@intevation.de>
date Tue, 19 Jun 2018 15:07:56 +0200
parents 4645e50539ff
children
line wrap: on
line diff
--- a/mergeclient.py	Thu Jun 07 14:33:44 2018 +0200
+++ b/mergeclient.py	Tue Jun 19 15:07:56 2018 +0200
@@ -43,11 +43,11 @@
     if r.status_code == 200:
         with open(options.out, "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)
 
 if __name__ == "__main__":
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)