diff options
author | lbriggs <lbriggs@apptio.com> | 2014-12-18 22:52:02 +0000 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2014-12-18 20:05:03 -0500 |
commit | 285543ac6a06327a62a59d60e3bf093b951f3ab4 (patch) | |
tree | a7173046f2f34b64596099a19e9a085b4e71d652 | |
parent | 992ba4a2a94c46d1b5fe14d901c1720263e17162 (diff) |
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.
-rwxr-xr-x | bin/dotbot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |