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

Re: [PATCH] git-p4: Avoid modules deprecated in Python 2.6.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2009, 18:14 UTC
Message-ID
<7vhbvucuj5.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1251305536-25887-1-git-send-email-reillyeon@qotw.net>
Reilly Grant <reillyeon@qotw.net> writes:
> The popen2, sha and sets modules are deprecated in Python 2.6 (sha in
> Python 2.5).  Both popen2 and sha are not actually used in git-p4.
> Replace usage of sets.Set with the builtin set object.

Does the code already rely on a feature not found in Python older than 2.4 before your patch? Otherwise I would have liked to see the last sentence like this:

    Replace usage of sets.Set with the builtin set object, which has
    been available since Python 2.4.
    This change makes the script unusable with Python older than 2.4,
    which was released in 2004. Hopefully nobody uses ancient 2.3.

So that I did not have to check myself to get a feel of how safe this change is.

Previous: Reilly GrantNext: Reilly Grant
Message 2 of 3 in “git-p4: Avoid modules deprecated in Python 2.6.”
  1. git-p4: Avoid modules deprecated in Python 2.6.Reilly Grant, Aug 26, 2009
  2. Junio C HamanoAug 26, 2009
  3. Reilly GrantAug 26, 2009

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.