Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
smol
Commits
2f535bef
Commit
2f535bef
authored
Jun 15, 2019
by
PoroCYon
Committed by
PoroCYon
Aug 12, 2019
Browse files
... actually make it deterministic
parent
9f03bcf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/smolemit.py
View file @
2f535bef
...
...
@@ -7,8 +7,8 @@ from smolshared import *
def
sort_imports
(
libraries
,
hashfn
):
#eprintf("in: " + str(libraries))
# sort libs by name length
ll
=
sorted
(
libraries
.
items
(),
key
=
lambda
ls
:
len
(
ls
[
0
]))
# sort libs by name length
, then by name
ll
=
sorted
(
libraries
.
items
(),
key
=
lambda
ls
:
(
len
(
ls
[
0
]),
ls
[
0
]))
for
i
in
range
(
len
(
ll
)):
# sort symbols by hash value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment