Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort modules by name during scan for repeatability. #21

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ Contributors
- Chris McDonough, 2011/02/16
- Chris Withers, 2011/03/14
- Joel Bohman, 2011/07/28
- Laurence Rowe, 2013/03/19
4 changes: 3 additions & 1 deletion venusian/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ def seen(p, m={}):
m[p] = True

# iter_modules is nonrecursive
for importer, name, ispkg in iter_modules(path, prefix):
# sorted by module name for repeatability
for importer, name, ispkg in sorted(iter_modules(path, prefix),
key=lambda item: item[1]):

if ignore is not None and ignore(name):
# if name is a package, ignoring here will cause
Expand Down