Updated Python 3 version check to use sys.version_info
authorSimeon Visser <redacted>
Sat, 17 Jan 2015 22:12:44 +0000 (22:12 +0000)
committerSimeon Visser <redacted>
Sat, 17 Jan 2015 22:12:44 +0000 (22:12 +0000)
xkcdpass/xkcd_password.py

index 17f08d940995854ace91307a2b20cab82dc4ffd5..86bcac6c6a57c00d6e5caa3aad9c1ae400d8b1e5 100755 (executable)
@@ -56,7 +56,7 @@ except AttributeError:
     rng = random.Random
 
 # Python 3 compatibility
-if sys.version[0] == "3":
+if sys.version_info[0] >= 3:
     raw_input = input
 
 
git clone https://git.99rst.org/PROJECT