projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix black and cover errors
[osm/osmclient.git]
/
osmclient
/
common
/
http.py
diff --git
a/osmclient/common/http.py
b/osmclient/common/http.py
index
fa5eae7
..
9207cbc
100644
(file)
--- a/
osmclient/common/http.py
+++ b/
osmclient/common/http.py
@@
-17,6
+17,7
@@
from io import BytesIO
import pycurl
import json
from io import BytesIO
import pycurl
import json
+import logging
class Http(object):
class Http(object):
@@
-25,6
+26,7
@@
class Http(object):
self._user = user
self._password = password
self._http_header = None
self._user = user
self._password = password
self._http_header = None
+ self._logger = logging.getLogger("osmclient")
def set_http_header(self, header):
self._http_header = header
def set_http_header(self, header):
self._http_header = header
@@
-40,7
+42,6
@@
class Http(object):
return curl_cmd
def get_cmd(self, endpoint):
return curl_cmd
def get_cmd(self, endpoint):
-
data = BytesIO()
curl_cmd = self._get_curl_cmd(endpoint)
curl_cmd.setopt(pycurl.HTTPGET, 1)
data = BytesIO()
curl_cmd = self._get_curl_cmd(endpoint)
curl_cmd.setopt(pycurl.HTTPGET, 1)