提交 57569b23 编写于 作者: N Nicolas Hennion

Change HTTPlib name for Python 3.4 - issue #419

上级 1818c4fb
......@@ -25,9 +25,14 @@ import socket
import sys
try:
from xmlrpc.client import Transport, ServerProxy, ProtocolError, Fault
except ImportError: # Python 2
except ImportError:
# Python 2
from xmlrpclib import Transport, ServerProxy, ProtocolError, Fault
import httplib
try:
import http.client as httplib
except:
# Python 2
import httplib
# Import Glances libs
from glances.core.glances_globals import version, logger
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册