cleanup pylint errors and py2/3 issues

This commit is contained in:
j 2016-06-08 15:32:46 +02:00
commit 77f8876fca
20 changed files with 232 additions and 197 deletions

View file

@ -101,7 +101,7 @@ class API(object):
result = result.decode('utf-8')
result = json.loads(result)
except:
result = {'status':{}}
result = {'status': {}}
result['status']['code'] = e.code
result['status']['text'] = str(e)
return result