projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated .gitignore: .idea
[osm/osmclient.git]
/
osmclient
/
sol005
/
http.py
diff --git
a/osmclient/sol005/http.py
b/osmclient/sol005/http.py
index
4debf0d
..
867db2d
100644
(file)
--- a/
osmclient/sol005/http.py
+++ b/
osmclient/sol005/http.py
@@
-17,9
+17,7
@@
from io import BytesIO
import pycurl
import json
from io import BytesIO
import pycurl
import json
-import yaml
from osmclient.common import http
from osmclient.common import http
-from osmclient.common.exceptions import ClientException
class Http(http.Http):
class Http(http.Http):
@@
-76,7
+74,7
@@
class Http(http.Http):
(pycurl.FORM_FILE,
formfile[1])))])
elif filename is not None:
(pycurl.FORM_FILE,
formfile[1])))])
elif filename is not None:
- with open(filename, 'r') as stream:
+ with open(filename, 'r
b
') as stream:
postdata=stream.read()
curl_cmd.setopt(pycurl.POSTFIELDS, postdata)
postdata=stream.read()
curl_cmd.setopt(pycurl.POSTFIELDS, postdata)