From 285543ac6a06327a62a59d60e3bf093b951f3ab4 Mon Sep 17 00:00:00 2001 From: lbriggs Date: Thu, 18 Dec 2014 22:52:02 +0000 Subject: [PATCH] Fix version check The version checking code fails on Python 2.6 and earlier. `sys.version_info` only became a named tuple in Python 2.7. The recommended way to get the check to work in earlier versions of Python is to access it as a regular tuple. --- bin/dotbot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dotbot b/bin/dotbot index 09e2d0e..e9b432b 100755 --- a/bin/dotbot +++ b/bin/dotbot @@ -10,7 +10,7 @@ def inject(lib_path): sys.path.insert(0, path) # version dependent libraries -if sys.version_info.major >= 3: +if sys.version_info[0] >= 3: inject('pyyaml/lib3') else: inject('pyyaml/lib')