diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-09 08:25:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-09 08:25:48 -0800 |
commit | 48b7f524550ad46db95ec097e7f085160073a247 (patch) | |
tree | f46c13a0011afb2bd659011076721b1dc0cb154a /contrib/ciabot/ciabot.py | |
parent | Merge branch 'er/stop-recommending-parsecvs' (diff) | |
parent | Add checks to Python scripts for version dependencies. (diff) | |
download | tgif-48b7f524550ad46db95ec097e7f085160073a247.tar.xz |
Merge branch 'er/python-version-requirements'
Some python scripts we ship cannot be run with older versions of the
interpreter.
* er/python-version-requirements:
Add checks to Python scripts for version dependencies.
Diffstat (limited to 'contrib/ciabot/ciabot.py')
-rwxr-xr-x | contrib/ciabot/ciabot.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py index bd24395d4c..36b5665ff8 100755 --- a/contrib/ciabot/ciabot.py +++ b/contrib/ciabot/ciabot.py @@ -47,7 +47,13 @@ # we default to that. # -import os, sys, commands, socket, urllib +import sys +if sys.hexversion < 0x02000000: + # The limiter is the xml.sax module + sys.stderr.write("ciabot.py: requires Python 2.0.0 or later.\n") + sys.exit(1) + +import os, commands, socket, urllib from xml.sax.saxutils import escape # Changeset URL prefix for your repo: when the commit ID is appended |