From 77f74a06688de5ce0d19412de68f99bcf94193db Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sun, 1 Jun 2014 17:29:18 +0800 Subject: [PATCH] fix python version check --- shadowsocks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/utils.py b/shadowsocks/utils.py index 9ee6b2f..c087ee3 100644 --- a/shadowsocks/utils.py +++ b/shadowsocks/utils.py @@ -30,7 +30,7 @@ import logging def check_python(): info = sys.version_info - if not (info.major == 2 and info.minor >= 6): + if not (info[0] == 2 and info[1] >= 6): print 'Python 2.6 or 2.7 required' sys.exit(1)