chameleon: Make xmlrpc compatible with Python 2 and 3
Make xmlrpc compatible with Python 2 and 3.
Need extra python lib 'future' to support xmlrpc on Python 2.
Also fix some other issues:
1. metaclasses
2. map
3. exceptions
4. http
5. isinstance
6. queue
7. octal constants
BUG=b:148751927
TEST=Start chameleond successfully after applying these CLs.
Change-Id: I501af7f4634497196f8fe180d8859a7a39b7c0a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/chameleon/+/2054728
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
diff --git a/setup.py b/setup.py
index cfc573b..a88dafc 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@
long_description='Server to communicate and control Chameleon board.',
# Uses pyserial version 2.7. The newer 3.x version is not compatible
# with chameleond/utils/serial_utils.py
- install_requires=['pyserial==2.7', 'schedule'],
+ install_requires=['pyserial==2.7', 'schedule', 'future'],
scripts=['utils/lock_u_boot_console', 'utils/run_chameleond',
'utils/run_displayd', 'utils/run_stream_server',
'chameleond/utils/server_time', 'utils/run_scheduler',