diff options
author | Nicolargo <nicolas@nicolargo.com> | 2014-10-02 21:24:26 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2014-10-02 21:24:26 +0200 |
commit | 287af37541cc4b45f46e9968afac535d76404faf (patch) | |
tree | 73f08c02fb93c2aa49d59175cff2f970e6133733 /glances/core/glances_client.py | |
parent | 20fbe4f5d5dd10cabf5de893ea90f60d4d637e5b (diff) | |
parent | ef158378d365c21ecb70f1c5eb76118101a98751 (diff) |
Merge branch 'release/v2.1.1'v2.1.1
Diffstat (limited to 'glances/core/glances_client.py')
-rw-r--r-- | glances/core/glances_client.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/glances/core/glances_client.py b/glances/core/glances_client.py index faf70ae1..a0e76bf1 100644 --- a/glances/core/glances_client.py +++ b/glances/core/glances_client.py @@ -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 |