Fix1: Package upload using Python3 was still broken:
[osm/osmclient.git] / osmclient / sol005 / http.py
index 7988d89..867db2d 100644 (file)
@@ -74,7 +74,7 @@ class Http(http.Http):
                            (pycurl.FORM_FILE,
                             formfile[1])))])
         elif filename is not None:
-            with open(filename, 'r') as stream:
+            with open(filename, 'rb') as stream:
                 postdata=stream.read()
             curl_cmd.setopt(pycurl.POSTFIELDS, postdata)