git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Python scripts audited for minimum compatible version and checks added.

From
Jeff King <peff@peff.net>
Date
Dec 20, 2012, 14:48 UTC
Message-ID
<20121220144813.GA27211@sigill.intra.peff.net>
In-Reply-To
<20121220141855.05DAA44105@snark.thyrsus.com>
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
Previous: Eric S. RaymondNext: Eric S. Raymond
Message 2 of 12 in “Python scripts audited for minimum compatible version and checks added.”
  1. Python scripts audited for minimum compatible version and checks added.Eric S. Raymond, Dec 20, 2012
  2. Jeff KingDec 20, 2012
  3. Eric S. RaymondDec 20, 2012
  4. Junio C HamanoDec 20, 2012
  5. Junio C HamanoDec 21, 2012
  6. Junio C HamanoDec 24, 2012
  7. Eric S. RaymondDec 24, 2012
  8. Manlio PerilloDec 21, 2012
  9. Pete WyckoffDec 24, 2012
  10. Eric S. RaymondDec 24, 2012
  11. Junio C HamanoDec 24, 2012
  12. Eric S. RaymondDec 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.