Mercurial > hg
changeset 5547:777996744942
patch: fix sort() comparator argument
'hg import' fails under Python 2.3. The name of the compare function parameter in the call to list.sort() is 'cmpfunc' in Python 2.3 and
'cmp' in Python 2.4+. Passing the compare function as a named parameter is therefore problematic.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sun, 25 Nov 2007 11:49:34 +0100 |
parents | 61c230f81068 |
children | 1fb38ef1f113 |
files | mercurial/patch.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff