commit a20a2025a5738cf5bcff52d36d88d3279af133e1 Author: Nick Mathewson nickm@torproject.org Date: Mon Mar 25 09:08:04 2019 -0400
practracker: sort filenames and directories.
This helps ensure that we'll get output in a stable order.
Closes ticket 29882. --- scripts/maint/practracker/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/maint/practracker/util.py b/scripts/maint/practracker/util.py index 63de72d5a..b0ca73b99 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 -