libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [29/40] libcloud git commit: Attempt to workaround pylint issue on import disutils.version on travis CI
Date Fri, 02 Dec 2016 04:33:31 GMT
Attempt to workaround pylint issue on import disutils.version on travis CI


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d8cdb924
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d8cdb924
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d8cdb924

Branch: refs/heads/trunk
Commit: d8cdb924d1886fafcdaf532a6e434f79fa86e4f4
Parents: d2486ec
Author: Samuel Chong <samuelchong1@gmail.com>
Authored: Wed Nov 23 15:53:19 2016 +1100
Committer: Samuel Chong <samuelchong1@gmail.com>
Committed: Wed Nov 23 15:53:19 2016 +1100

----------------------------------------------------------------------
 libcloud/common/dimensiondata.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d8cdb924/libcloud/common/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py
index a665eed..0cb726f 100644
--- a/libcloud/common/dimensiondata.py
+++ b/libcloud/common/dimensiondata.py
@@ -18,11 +18,14 @@ Dimension Data Common Components
 from base64 import b64encode
 from time import sleep
 
-from distutils.version import LooseVersion  # pylint: disable-msg=E0611
+try:
+    from distutils.version import LooseVersion  # pylint: disable=import-error
+except ImportError:
+    pass
+
 from libcloud.utils.py3 import httplib
 from libcloud.utils.py3 import b
 from libcloud.common.base import ConnectionUserAndKey, XmlResponse, RawResponse
-from libcloud.common.types import LibcloudError, InvalidCredsError
 from libcloud.compute.base import Node
 from libcloud.utils.py3 import basestring
 from libcloud.utils.xml import findtext


Mime
View raw message