[Python-checkins] cpython (merge 3.3 -> default): Fix generating of sre_constants.h on Python 3.
serhiy.storchaka
python-checkins at python.org
Thu Jan 24 12:46:26 CET 2013
http://hg.python.org/cpython/rev/2c12a1236fdc
changeset: 81680:2c12a1236fdc
parent: 81677:cd87afe18ff8
parent: 81679:f11da141b44e
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Jan 24 13:44:18 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