[Python-checkins] cpython (merge 3.2 -> 3.3): Fix generating of sre_constants.h on Python 3.
serhiy.storchaka
python-checkins at python.org
Thu Jan 24 12:46:25 CET 2013
http://hg.python.org/cpython/rev/f11da141b44e
changeset: 81679:f11da141b44e
branch: 3.3
parent: 81675:59ea872d8b6b
parent: 81678:edf4c51c06a3
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Jan 24 13:43:46 2013 +0200
summary:
Fix generating of sre_constants.h on Python 3.
files:
Lib/sre_constants.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py
--- a/Lib/sre_constants.py
+++ b/Lib/sre_constants.py
@@ -219,8 +219,7 @@
if __name__ == "__main__":
def dump(f, d, prefix):
- items = d.items()
- items.sort(key=lambda a: a[1])
+ items = sorted(d.items(), key=lambda a: a[1])
for k, v in items:
f.write("#define %s_%s %s\n" % (prefix, k.upper(), v))
f = open("sre_constants.h", "w")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list