mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
practracker: Fix indentation in util.py
This commit only changes whitespace and removes a temporary comment.
This commit is contained in:
parent
651bbe8a0d
commit
3a2964577e
@ -22,23 +22,22 @@ def get_tor_c_files(tor_topdir, include_dirs=None):
|
|||||||
else:
|
else:
|
||||||
topdirs = [ os.path.join(tor_topdir, inc) for inc in include_dirs ]
|
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 topdir in topdirs:
|
||||||
for root, directories, filenames in os.walk(topdir):
|
for root, directories, filenames in os.walk(topdir):
|
||||||
# Remove all the directories that are excluded.
|
# Remove all the directories that are excluded.
|
||||||
directories[:] = [ d for d in directories
|
directories[:] = [ d for d in directories
|
||||||
if _norm(os.path.join(root,d)) not in exclude_dirs ]
|
if _norm(os.path.join(root,d)) not in exclude_dirs ]
|
||||||
directories.sort()
|
directories.sort()
|
||||||
filenames.sort()
|
filenames.sort()
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
# We only care about .c and .h files
|
# We only care about .c and .h files
|
||||||
if not (filename.endswith(".c") or filename.endswith(".h")):
|
if not (filename.endswith(".c") or filename.endswith(".h")):
|
||||||
continue
|
continue
|
||||||
if filename in EXCLUDE_FILES:
|
if filename in EXCLUDE_FILES:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
full_path = os.path.join(root,filename)
|
full_path = os.path.join(root,filename)
|
||||||
|
|
||||||
files_list.append(full_path)
|
files_list.append(full_path)
|
||||||
|
|
||||||
return files_list
|
return files_list
|
||||||
|
Loading…
Reference in New Issue
Block a user