From f33a50c69bbb7790f612eebeb005e1137b5c252a Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Sun, 27 Nov 2016 19:48:00 -0800 Subject: make usage parseable by argparse --- pyramid/scripts/pdistreport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid/scripts/pdistreport.py b/pyramid/scripts/pdistreport.py index c090d3311..64837a36c 100644 --- a/pyramid/scripts/pdistreport.py +++ b/pyramid/scripts/pdistreport.py @@ -13,9 +13,9 @@ def out(*args): # pragma: no cover def main(argv=sys.argv, pkg_resources=pkg_resources, platform=platform.platform, out=out): # all args except argv are for unit testing purposes only - description = "Show Python distribution versions and locations in use" - usage = "usage: %(prog)s" - parser = argparse.ArgumentParser(usage, description=description) + parser = argparse.ArgumentParser( + usage="%(prog)s", + description="Show Python distribution versions and locations in use") parser.parse_args(argv[1:]) packages = [] for distribution in pkg_resources.working_set: -- cgit v1.2.3