You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/03/14 23:14:37 UTC

[3/3] libcloud git commit: Fix the assingment, sys.version_info is a tuple in Python <= 2.6.

Fix the assingment, sys.version_info is a tuple in Python <= 2.6.


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

Branch: refs/heads/trunk
Commit: 88e3c822b3ed7534f085c37d8beb1c230a828ea2
Parents: 8ba4cd7
Author: Tomaz Muraus <to...@apache.org>
Authored: Sat Mar 14 23:08:41 2015 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Mar 14 23:09:04 2015 +0100

----------------------------------------------------------------------
 setup.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/88e3c822/setup.py
----------------------------------------------------------------------
diff --git a/setup.py b/setup.py
index bd57770..f64a6dc 100644
--- a/setup.py
+++ b/setup.py
@@ -36,8 +36,8 @@ libcloud.utils.misc.SHOW_DEPRECATION_WARNING = False
 # Different versions of python have different requirements.  We can't use
 # libcloud.utils.py3 here because it relies on backports dependency being
 # installed / available
-PY2 = sys.version_info.major == 2
-PY3 = sys.version_info.major == 3
+PY2 = sys.version_info[0] == 2
+PY3 = sys.version_info[0] == 3
 PY2_pre_25 = PY2 and sys.version_info < (2, 5)
 PY2_pre_26 = PY2 and sys.version_info < (2, 6)
 PY2_pre_27 = PY2 and sys.version_info < (2, 7)
@@ -73,6 +73,7 @@ if PY2_pre_25:
           ', '.join(SUPPORTED_VERSIONS))
     sys.exit(1)
 
+
 def read_version_string():
     version = None
     sys.path.insert(0, pjoin(os.getcwd()))