mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
sort as the sort command does
This commit is contained in:
parent
0664140379
commit
4d75b63c95
2 changed files with 7 additions and 1 deletions
|
@ -86,3 +86,7 @@ Other
|
||||||
-----
|
-----
|
||||||
More to come. Send me a patch or pull request if you can't wait and have written one yourself :-)
|
More to come. Send me a patch or pull request if you can't wait and have written one yourself :-)
|
||||||
|
|
||||||
|
Bugs
|
||||||
|
----
|
||||||
|
* Finish writing results even on Ctrl-C or other interruption.
|
||||||
|
* ``setup.py`` script.
|
||||||
|
|
|
@ -62,7 +62,9 @@ def write_verfile():
|
||||||
return
|
return
|
||||||
|
|
||||||
with open(options.verfile, 'w') as f:
|
with open(options.verfile, 'w') as f:
|
||||||
for item in sorted(g_curver.items()):
|
# sort using only alphanums, as done by the sort command, and needed by
|
||||||
|
# comm command
|
||||||
|
for item in sorted(g_curver.items(), key=lambda i: (''.join(filter(str.isalnum, i[0])), i[1])):
|
||||||
print('%s: %s' % item, file=f)
|
print('%s: %s' % item, file=f)
|
||||||
|
|
||||||
def print_version_update(name, version):
|
def print_version_update(name, version):
|
||||||
|
|
Loading…
Add table
Reference in a new issue