Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
3a296457
Commit
3a296457
authored
Sep 02, 2019
by
Nick Mathewson
🎨
Browse files
practracker: Fix indentation in util.py
This commit only changes whitespace and removes a temporary comment.
parent
651bbe8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/maint/practracker/util.py
View file @
3a296457
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment