tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 860b9a991879c5be2b32cf98766adf5fdd349d41
parent 58fc42fdcedc9c0446e709d98eaf7c53c464750a
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 26 Jun 2018 12:04:24 -0400

Remove some accidentally committed code in checkIncludes.py

Diffstat:
Mscripts/maint/checkIncludes.py | 15+++------------
1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py @@ -58,21 +58,12 @@ def load_include_rules(fname): result.addPattern(line) return result -MDD = "--mdd" in sys.argv[1:] - -if MDD: - print( - for dirpath, dirnames, fnames in os.walk("src"): if ".may_include" in fnames: rules = load_include_rules(os.path.join(dirpath, RULES_FNAME)) - if MDD: - dp = dirpath.replace("src/","") - rules.dump_mdd(dp) - else: - for fname in fnames: - if fname_is_c(fname): - rules.applyToFile(os.path.join(dirpath,fname)) + for fname in fnames: + if fname_is_c(fname): + rules.applyToFile(os.path.join(dirpath,fname)) if trouble: err(