summaryrefslogtreecommitdiff
path: root/Lib/sre_constants.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-10-16 05:53:16 +0000
committerRaymond Hettinger <python@rcn.com>2003-10-16 05:53:16 +0000
commit6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 (patch)
tree1bd1e055f31e154230ffd962a294d37cf678c87a /Lib/sre_constants.py
parent42b1ba31aff86af6257a0fca455d5569bce9d8fc (diff)
downloadcpython-git-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.tar.gz
Let library modules use the new keyword arguments for list.sort().
Diffstat (limited to 'Lib/sre_constants.py')
-rw-r--r--Lib/sre_constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py
index 07b24ddf54..fa009c12c5 100644
--- a/Lib/sre_constants.py
+++ b/Lib/sre_constants.py
@@ -219,7 +219,7 @@ if __name__ == "__main__":
import string
def dump(f, d, prefix):
items = d.items()
- items.sort(lambda a, b: cmp(a[1], b[1]))
+ items.sort(key=lambda a: a[1])
for k, v in items:
f.write("#define %s_%s %s\n" % (prefix, string.upper(k), v))
f = open("sre_constants.h", "w")