summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-02 15:03:43 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-05-02 15:03:43 (GMT)
commitc4e78b116f9a4299f3b3bfbbd18ef49782bb1143 (patch)
tree5ae0fb1abf0b4e486c05cf9c33b8b4311323ee4c /Tools/scripts
parent0d5864fa07ab4f03188c690a5eb07bdd1fd1cb9c (diff)
downloadcpython-c4e78b116f9a4299f3b3bfbbd18ef49782bb1143.zip
cpython-c4e78b116f9a4299f3b3bfbbd18ef49782bb1143.tar.gz
cpython-c4e78b116f9a4299f3b3bfbbd18ef49782bb1143.tar.bz2
bpo-14546: Fix the argument handling in Tools/scripts/lll.py (GH-13026)
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/lll.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Tools/scripts/lll.py b/Tools/scripts/lll.py
index aa4e550..1b48eac 100755
--- a/Tools/scripts/lll.py
+++ b/Tools/scripts/lll.py
@@ -13,8 +13,7 @@ def lll(dirname):
full = os.path.join(dirname, name)
if os.path.islink(full):
print(name, '->', os.readlink(full))
-def main():
- args = sys.argv[1:]
+def main(args):
if not args: args = [os.curdir]
first = 1
for arg in args:
@@ -22,7 +21,7 @@ def main():
if not first: print()
first = 0
print(arg + ':')
- lll(arg)
+ lll(arg)
if __name__ == '__main__':
- main()
+ main(sys.argv[1:])