aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-07 09:59:43 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-07 09:59:43 +0100
commit35cea52881bca478ae8ab30f53293fe54953c2d1 (patch)
treef6f07370d23fa7b4ca4a75857f6dc8095e68cf5a
parentda0b92c0c722ad91c1b38344cbdd451593858f5f (diff)
removed set_defaults for main parser
This resolves the bug that can be reproduced on python 2.7.6. ArgumentParser calls incorrect function when using subparsers but there is a default function set. The bug can't be reproduced on python 2.7.12 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-xandroid-report-toolbox.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/android-report-toolbox.py b/android-report-toolbox.py
index 1b332a7..0befc27 100755
--- a/android-report-toolbox.py
+++ b/android-report-toolbox.py
@@ -21,9 +21,6 @@ from tools import (
from argparse import ArgumentParser
-def retrieve_build_data(args):
- print args
-
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument("-q",
@@ -61,7 +58,6 @@ if __name__ == '__main__':
action="store_true",
default=False,
help="Force overwrite existing files")
- parser.set_defaults(func=retrieve_build_data)
subparsers = parser.add_subparsers(
help='sub-command help')
parser_b = subparsers.add_parser("benchmarks",