diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-03-25 09:08:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-25 09:08:04 -0400 |
commit | a20a2025a5738cf5bcff52d36d88d3279af133e1 (patch) | |
tree | cc8c9fbb93a3cd0240ff1d4caee04515d4f5eec2 /scripts/maint | |
parent | 9d0ce0afcce9bbf969d11ba081f829aef5071e9c (diff) | |
download | tor-a20a2025a5738cf5bcff52d36d88d3279af133e1.tar.gz tor-a20a2025a5738cf5bcff52d36d88d3279af133e1.zip |
practracker: sort filenames and directories.
This helps ensure that we'll get output in a stable order.
Closes ticket 29882.
Diffstat (limited to 'scripts/maint')
-rw-r--r-- | scripts/maint/practracker/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/maint/practracker/util.py b/scripts/maint/practracker/util.py index 63de72d5a3..b0ca73b997 100644 --- a/scripts/maint/practracker/util.py +++ b/scripts/maint/practracker/util.py @@ -11,6 +11,8 @@ def get_tor_c_files(tor_topdir): files_list = [] for root, directories, filenames in os.walk(tor_topdir): + directories.sort() + filenames.sort() for filename in filenames: # We only care about .c files if not filename.endswith(".c"): @@ -24,4 +26,3 @@ def get_tor_c_files(tor_topdir): files_list.append(full_path) return files_list - |