cleanup: pylint, W0109 # (duplicate-key) Duplicate key 'X' in dictionary
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 03 Oct 2018 11:48:05 +0300
changeset 2421 a5994ee1f6a7
parent 2420 290b77b72123
child 2422 45aa510d7a2a
cleanup: pylint, W0109 # (duplicate-key) Duplicate key 'X' in dictionary
etherlab/CommonEtherCATFunction.py
tests/tools/check_source.sh
--- a/etherlab/CommonEtherCATFunction.py	Wed Oct 03 11:47:04 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Wed Oct 03 11:48:05 2018 +0300
@@ -428,7 +428,6 @@
                         "UINT48": "19",
                         "UINT56": "1a",
                         "ULINT": "1b",
-                        "USINT": "1e",
                         "BITARR8": "2d",
                         "BITARR16": "2e",
                         "BITARR32": "2f",
--- a/tests/tools/check_source.sh	Wed Oct 03 11:47:04 2018 +0300
+++ b/tests/tools/check_source.sh	Wed Oct 03 11:48:05 2018 +0300
@@ -318,6 +318,7 @@
     enable=$enable,W0601          # (global-variable-undefined) Global variable 'X' undefined at the module level
     enable=$enable,W0111          # (assign-to-new-keyword) Name async will become a keyword in Python 3.7
     enable=$enable,W0623          # (redefine-in-handler) Redefining name 'X' from outer scope (line Y) in exception handler
+    enable=$enable,W0109          # (duplicate-key) Duplicate key 'X' in dictionary
     enable=$enable,E1310          # (bad-str-strip-call) Suspicious argument in str.strip call
     enable=$enable,E1300          # (bad-format-character) Unsupported format character '"' (0x22) at index 17
     enable=$enable,E1304          # (missing-format-string-key) Missing key 'X_name' in format string dictionary