aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-25 15:52:43 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-25 16:09:11 -0400
commit0260e0f6fc46cd196c59d3d2c4551be2f15a7547 (patch)
tree6a53793dcb863b65328b7a3c07dfb7ca39fc4f17
parent301e3f22eff5021b0855a70cf98a1ccee69a19a8 (diff)
downloadtor-0260e0f6fc46cd196c59d3d2c4551be2f15a7547.tar.gz
tor-0260e0f6fc46cd196c59d3d2c4551be2f15a7547.zip
practracker: pass sys.argv to main() as an argument
-rwxr-xr-xscripts/maint/practracker/practracker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/maint/practracker/practracker.py b/scripts/maint/practracker/practracker.py
index aec7c8b295..9f87415218 100755
--- a/scripts/maint/practracker/practracker.py
+++ b/scripts/maint/practracker/practracker.py
@@ -145,8 +145,8 @@ HEADER="""\
""".format(**globals())
-def main():
- if (len(sys.argv) != 2):
+def main(argv):
+ if (len(argv) != 2):
print("Usage:\n\t$ practracker.py <tor topdir>\n\t(e.g. $ practracker.py ~/tor/)")
return
@@ -180,4 +180,4 @@ See doc/HACKING/HelpfulTools.md for more information on using practracker.\
sys.exit(found_new_issues)
if __name__ == '__main__':
- main()
+ main(sys.argv)