From 53bcab0552bc848d5fb541c918eb92ebaa486efd Mon Sep 17 00:00:00 2001 From: Daniel Case Date: Sun, 15 Oct 2017 13:33:08 +0800 Subject: [PATCH] We shouldn't use xrange in Python 3.x, range is the same as xrange from python 2.x and xrange has been deprecated --- adb/common_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/common_cli.py b/adb/common_cli.py index f0bf504..22dfdd8 100644 --- a/adb/common_cli.py +++ b/adb/common_cli.py @@ -98,7 +98,7 @@ def MakeSubparser(subparsers, parents, method, arguments=None): # arguments that default to '' but excludes arguments that default to None. offset = len(argspec.args) - len(argspec.defaults or []) - 1 positional = [] - for i in xrange(1, len(argspec.args)): + for i in range(1, len(argspec.args)): if i > offset and argspec.defaults[i-offset-1] is None: break positional.append(argspec.args[i])