projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b102f2
)
Fix generating of sre_constants.h on Python 3.
author
Serhiy Storchaka
<storchaka@gmail.com>
Thu, 24 Jan 2013 11:43:02 +0000
(13:43 +0200)
committer
Serhiy Storchaka
<storchaka@gmail.com>
Thu, 24 Jan 2013 11:43:02 +0000
(13:43 +0200)
Lib/sre_constants.py
patch
|
blob
|
history
diff --git
a/Lib/sre_constants.py
b/Lib/sre_constants.py
index 6cf69c321b8e133a7275123ead2beafb68f7dc54..417670bf8dbd79ba0195ee5d76f051df730cb474 100644
(file)
--- a/
Lib/sre_constants.py
+++ b/
Lib/sre_constants.py
@@
-219,8
+219,7
@@
SRE_INFO_CHARSET = 4 # pattern starts with character from given set
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")