From 7829fea4a2c8936513fa95215b7d84997f814a69 Mon Sep 17 00:00:00 2001 From: pmikus Date: Thu, 10 Jun 2021 08:02:29 +0000 Subject: FIX: Pylint reduce Signed-off-by: pmikus Change-Id: I909942dbb920df7f0fe15c0c92cda92c3cd8d8ad --- resources/tools/integrated/__init__.py | 2 +- resources/tools/integrated/check_crc.py | 6 +++--- resources/tools/integrated/compare_perpatch.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'resources/tools/integrated') diff --git a/resources/tools/integrated/__init__.py b/resources/tools/integrated/__init__.py index a708b16817..fed3209ecf 100644 --- a/resources/tools/integrated/__init__.py +++ b/resources/tools/integrated/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: diff --git a/resources/tools/integrated/check_crc.py b/resources/tools/integrated/check_crc.py index 1d98a467e2..6baa7a190d 100644 --- a/resources/tools/integrated/check_crc.py +++ b/resources/tools/integrated/check_crc.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -62,8 +62,8 @@ def main(): u"", u"In the former case, please consult the following document", u"to see how to make CSIT accept the .api editing change.", - u"https://github.com/FDio/csit/blob/master/docs/automating_vpp_api_flag_day.rst" - u"", + u"https://github.com/FDio/csit/blob/master/docs/" + u"automating_vpp_api_flag_day.rst", u"For the latter case, please rebase the patch to see", u"if that fixes the problem. If repeated rebases do not help", u"send and email to csit-dev@lists.fd.io asking to investigate.", diff --git a/resources/tools/integrated/compare_perpatch.py b/resources/tools/integrated/compare_perpatch.py index 62e55629f6..b4d52dcdfe 100644 --- a/resources/tools/integrated/compare_perpatch.py +++ b/resources/tools/integrated/compare_perpatch.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -72,7 +72,7 @@ def main(): for test_index in range(num_tests): parent_values = list() current_values = list() - for iteration_index in range(len(parent_iterations)): + for iteration_index, _ in enumerate(parent_iterations): parent_values.extend( json.loads(parent_iterations[iteration_index][test_index]) ) -- cgit 1.2.3-korg