aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/practracker/util.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-02 15:40:03 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-02 15:40:35 -0400
commit3a2964577e397319fe89cbba5393818beab665bd (patch)
treec50abbc772f4e730664650e18b0d06e2fe41bd57 /scripts/maint/practracker/util.py
parent651bbe8a0d5fbff261a98314b56f57314ea394cd (diff)
downloadtor-3a2964577e397319fe89cbba5393818beab665bd.tar.gz
tor-3a2964577e397319fe89cbba5393818beab665bd.zip
practracker: Fix indentation in util.py
This commit only changes whitespace and removes a temporary comment.
Diffstat (limited to 'scripts/maint/practracker/util.py')
-rw-r--r--scripts/maint/practracker/util.py33
1 files changed, 16 insertions, 17 deletions
diff --git a/scripts/maint/practracker/util.py b/scripts/maint/practracker/util.py
index 854d369f74..4b42565528 100644
--- a/scripts/maint/practracker/util.py
+++ b/scripts/maint/practracker/util.py
@@ -22,23 +22,22 @@ def get_tor_c_files(tor_topdir, include_dirs=None):
else:
topdirs = [ os.path.join(tor_topdir, inc) for inc in include_dirs ]
- # TO THE REVIEWER: I will fix this indentation shortly. -nm
for topdir in topdirs:
- for root, directories, filenames in os.walk(topdir):
- # Remove all the directories that are excluded.
- directories[:] = [ d for d in directories
- if _norm(os.path.join(root,d)) not in exclude_dirs ]
- directories.sort()
- filenames.sort()
- for filename in filenames:
- # We only care about .c and .h files
- if not (filename.endswith(".c") or filename.endswith(".h")):
- continue
- if filename in EXCLUDE_FILES:
- continue
-
- full_path = os.path.join(root,filename)
-
- files_list.append(full_path)
+ for root, directories, filenames in os.walk(topdir):
+ # Remove all the directories that are excluded.
+ directories[:] = [ d for d in directories
+ if _norm(os.path.join(root,d)) not in exclude_dirs ]
+ directories.sort()
+ filenames.sort()
+ for filename in filenames:
+ # We only care about .c and .h files
+ if not (filename.endswith(".c") or filename.endswith(".h")):
+ continue
+ if filename in EXCLUDE_FILES:
+ continue
+
+ full_path = os.path.join(root,filename)
+
+ files_list.append(full_path)
return files_list