Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1a7c56 + 385ecd8 commit 33f7cddCopy full SHA for 33f7cdd
1 file changed
Lib/sre_constants.py
@@ -219,8 +219,7 @@ def makedict(list):
219
220
if __name__ == "__main__":
221
def dump(f, d, prefix):
222
- items = d.items()
223
- items.sort(key=lambda a: a[1])
+ items = sorted(d.items(), key=lambda a: a[1])
224
for k, v in items:
225
f.write("#define %s_%s %s\n" % (prefix, k.upper(), v))
226
f = open("sre_constants.h", "w")
0 commit comments