Browse Source

and make --det work again

pull/17/head
PoroCYon 1 year ago
parent
commit
6ad8eed5b2
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      smol/emit.py

+ 2
- 3
smol/emit.py View File

@ -41,9 +41,8 @@ def sort_imports(libraries, hashfn):
#if sys.version_info < (3, 6): return OrderedDict(ll)
#else: return dict(ll)
ll = libraries.items()
for k, v in ll:
libraries[k] = sorted(v, key=lambda sr: hashfn(sr[0]))
for k, v in libraries.items():
libraries[k] = OrderedDict(sorted(v.items(), key=lambda sr: hashfn(sr[0])))
return libraries


Loading…
Cancel
Save