Message ID | 20191207003333.3228-3-yang.zhao@skyboxlabs.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | git-p4: python3 compatibility | expand |
diff --git a/git-p4.py b/git-p4.py index 60c73b6a37..d8f88884db 100755 --- a/git-p4.py +++ b/git-p4.py @@ -8,9 +8,8 @@ # License: MIT <http://www.opensource.org/licenses/mit-license.php> # import sys -if sys.hexversion < 0x02040000: - # The limiter is the subprocess module - sys.stderr.write("git-p4: requires Python 2.4 or later.\n") +if sys.version_info.major < 3 and sys.version_info.minor < 7: + sys.stderr.write("git-p4: requires Python 2.7 or later.\n") sys.exit(1) import os import optparse