aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/delwithsuffix.py
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-05-17 04:41:54 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-05-17 04:41:54 -0400
commitea636fcd518f69c52e2a2753c5802e2bae66ab0d (patch)
tree3706c5f523bf50bd184542381c94ef91a2b3468b /mesonbuild/scripts/delwithsuffix.py
parente66465369d3150cf4efcff8682c07197935ef3bc (diff)
downloadmeson-ea636fcd518f69c52e2a2753c5802e2bae66ab0d.zip
meson-ea636fcd518f69c52e2a2753c5802e2bae66ab0d.tar.gz
meson-ea636fcd518f69c52e2a2753c5802e2bae66ab0d.tar.bz2
Remove unused variables.
Diffstat (limited to 'mesonbuild/scripts/delwithsuffix.py')
-rw-r--r--mesonbuild/scripts/delwithsuffix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/scripts/delwithsuffix.py b/mesonbuild/scripts/delwithsuffix.py
index bd34202..0d410ae 100644
--- a/mesonbuild/scripts/delwithsuffix.py
+++ b/mesonbuild/scripts/delwithsuffix.py
@@ -15,12 +15,12 @@
import os, sys
def run(args):
- if len(sys.argv) != 3:
+ if len(args) != 2:
print('delwithsuffix.py <root of subdir to process> <suffix to delete>')
sys.exit(1)
- topdir = sys.argv[1]
- suffix = sys.argv[2]
+ topdir = args[0]
+ suffix = args[1]
if suffix[0] != '.':
suffix = '.' + suffix