Various python cleanups (#3650)

* python: Let logging format messages on demand

* python: Use six more

* python: Remove unused imports

* python: flake8 fixes

* python: Make examples compatible with Python 3

* python: Spelling fixes
This commit is contained in:
Ville Skyttä
2016-08-30 05:16:17 +03:00
committed by wing328
parent d8406c0dd0
commit 224fd208e7
14 changed files with 94 additions and 126 deletions

View File

@@ -178,7 +178,7 @@ class RESTClientObject(object):
r.data = r.data.decode('utf8')
# log response body
logger.debug("response body: %s" % r.data)
logger.debug("response body: %s", r.data)
if r.status not in range(200, 206):
raise ApiException(http_resp=r)