1a7a781e48
This commit fixes two issues, which make the client work with Python 3.4 and still being compatible with Python 2.7. The first issue is, that the command line args somehow become a Map instead of list in Python 3.4. I fixed it by explicitly making argv (sys.argv) a list. The second issue is in the httpclient.py, where the values of a http response are of type byte, which cannot be joined by join method of string. I fixed it by decoding byte to utf-8 string. Additional if statement satisfies wrong Python 3.4 test behavior. Change-Id: Ifaf03cbc5512dcbe82cfc37bc0c8471ffdbc7018 Closes-Bug: #1535821 |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
httpclient.py | ||
utils.py |