diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-17 14:02:17 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-17 14:33:49 +0200 |
commit | 86d3d310f529bc1e13ce1ca5013c674837c9856b (patch) | |
tree | 929fa51708fcd95952363dad5d47f65e17af4391 /scripts/maint/practracker/metrics.py | |
parent | 4c095329964c47c7a37c812fdaf58b9238cc9ff5 (diff) | |
download | tor-86d3d310f529bc1e13ce1ca5013c674837c9856b.tar.gz tor-86d3d310f529bc1e13ce1ca5013c674837c9856b.zip |
Practracker: allow tabs in include lines
This isn't actually something that Tor does, but it's cleaner to do
it this way. Part of 29746.
Diffstat (limited to 'scripts/maint/practracker/metrics.py')
-rw-r--r-- | scripts/maint/practracker/metrics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maint/practracker/metrics.py b/scripts/maint/practracker/metrics.py index b35029b51d..82f1cd64e9 100644 --- a/scripts/maint/practracker/metrics.py +++ b/scripts/maint/practracker/metrics.py @@ -16,7 +16,7 @@ def get_include_count(f): """Get number of #include statements in the file""" include_count = 0 for line in f: - if re.match(r' *# *include', line): + if re.match(r'\s*#\s*include', line): include_count += 1 return include_count |