Re: [PATCH] Python scripts audited for minimum compatible version and checks added.
On Thu, Dec 20, 2012 at 09:13:37AM -0500, Eric S. Raymond wrote:
Show 12 quoted lines
> diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
> index bd24395..b55648f 100755
> --- a/contrib/ciabot/ciabot.py
> +++ b/contrib/ciabot/ciabot.py
> @@ -50,6 +50,11 @@
> import os, sys, commands, socket, urllib
> from xml.sax.saxutils import escape
>
> +if sys.hexversion < 0x02000000:
> + # The limiter is the xml.sax module
> + sys.stderr.write("import-zips.py: requires Python 2.0.0 or later.")
> + sys.exit(1)Should the error message say ciabot.py?
-Peff