tests: Use python3 compatible function attribute
This patch is made by using 2to3 command. $ find . -name *.py | xargs 2to3 -f funcattrs -w -n Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
330f2dd6bb
commit
8c851c2e36
3 changed files with 5 additions and 5 deletions
|
@ -488,12 +488,12 @@ def main():
|
|||
set_term_echo(sys.stdin.fileno(), True)
|
||||
sys.exit(1)
|
||||
try:
|
||||
if t.func_code.co_argcount > 2:
|
||||
if t.__code__.co_argcount > 2:
|
||||
params = {}
|
||||
params['logdir'] = args.logdir
|
||||
params['long'] = args.long
|
||||
t(dev, apdev, params)
|
||||
elif t.func_code.co_argcount > 1:
|
||||
elif t.__code__.co_argcount > 1:
|
||||
t(dev, apdev)
|
||||
else:
|
||||
t(dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue