From 50e5e620a3a0ec1b23adb83ade1224c0f4fa4591 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 31 Oct 2014 22:27:12 +0800 Subject: [PATCH] fix version detection --- shadowsocks/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/utils.py b/shadowsocks/utils.py index bb14391..9b6cd3a 100644 --- a/shadowsocks/utils.py +++ b/shadowsocks/utils.py @@ -39,10 +39,10 @@ def check_python(): if info[0] == 2 and not info[1] >= 6: print('Python 2.6+ required') sys.exit(1) - if info[0] == 3 and not info[1] >= 3: + elif info[0] == 3 and not info[1] >= 3: print('Python 3.3+ required') sys.exit(1) - else: + elif info[0] not in [2, 3]: print('Python version not supported') sys.exit(1)