Commit fb804e5
committed
pylint: fix several pylint issues
Unused variable 'server_status' (unused-variable)
Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
Use lazy % formatting in logging functions (logging-not-lazy)
Possible unbalanced tuple unpacking with sequence defined at line 1629: left side has 3 label(s), right side has 2 value(s) (unbalanced-tuple-unpacking)
Unnecessary "else" after "continue" (no-else-continue)
Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
Consider using [] instead of list() (use-list-literal)
Method 'name' was expected to be 'method', found it instead as 'property' (invalid-overridden-method)
Consider merging these comparisons with "in" to 'node in (conn.node_a, conn.node_b)' (consider-using-in)
Unused private member `AbstractXBeeDevice.__is_api_packet(xbee_packet)` (unused-private-member)
Method could be a function (no-self-use)
Unused private member `IPDevice.__DEFAULT_PROTOCOL` (unused-private-member)
Unused private member `XBeeDevice.__TIMEOUT_ENTER_COMMAND_MODE` (unused-private-member)
Unused private member `XBeeDevice.__COMMAND_MODE_CHAR` (unused-private-member)
Unused private member `XBeeDevice.__COMMAND_MODE_OK` (unused-private-member)
Unused private member `XBee64BitAddress.__DEVICE_ID_SEPARATOR` (unused-private-member)
Unused private member `XBee64BitAddress.__DEVICE_ID_MAC_SEPARATOR` (unused-private-member)
Unnecessary parens after 'not' keyword (superfluous-parens)
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>1 parent 00a2475 commit fb804e5
File tree
13 files changed
+125
-136
lines changed- digi/xbee
- models
- util
13 files changed
+125
-136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| |||
1222 | 1223 | | |
1223 | 1224 | | |
1224 | 1225 | | |
1225 | | - | |
| 1226 | + | |
1226 | 1227 | | |
1227 | 1228 | | |
1228 | 1229 | | |
| |||
1340 | 1341 | | |
1341 | 1342 | | |
1342 | 1343 | | |
1343 | | - | |
| 1344 | + | |
1344 | 1345 | | |
1345 | 1346 | | |
1346 | 1347 | | |
| |||
2033 | 2034 | | |
2034 | 2035 | | |
2035 | 2036 | | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | 2037 | | |
2053 | 2038 | | |
2054 | 2039 | | |
| |||
2305 | 2290 | | |
2306 | 2291 | | |
2307 | 2292 | | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
2314 | | - | |
2315 | | - | |
2316 | 2293 | | |
2317 | 2294 | | |
2318 | 2295 | | |
| |||
2323 | 2300 | | |
2324 | 2301 | | |
2325 | 2302 | | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
2330 | | - | |
2331 | | - | |
2332 | | - | |
2333 | | - | |
2334 | | - | |
2335 | | - | |
2336 | 2303 | | |
2337 | 2304 | | |
2338 | 2305 | | |
| |||
2460 | 2427 | | |
2461 | 2428 | | |
2462 | 2429 | | |
2463 | | - | |
| 2430 | + | |
2464 | 2431 | | |
2465 | 2432 | | |
2466 | 2433 | | |
| |||
2475 | 2442 | | |
2476 | 2443 | | |
2477 | 2444 | | |
2478 | | - | |
| 2445 | + | |
2479 | 2446 | | |
2480 | 2447 | | |
2481 | 2448 | | |
| |||
6196 | 6163 | | |
6197 | 6164 | | |
6198 | 6165 | | |
6199 | | - | |
6200 | | - | |
6201 | 6166 | | |
6202 | 6167 | | |
6203 | 6168 | | |
| |||
7731 | 7696 | | |
7732 | 7697 | | |
7733 | 7698 | | |
7734 | | - | |
7735 | | - | |
7736 | | - | |
7737 | | - | |
7738 | | - | |
7739 | | - | |
| 7699 | + | |
7740 | 7700 | | |
7741 | 7701 | | |
7742 | 7702 | | |
| |||
10112 | 10072 | | |
10113 | 10073 | | |
10114 | 10074 | | |
10115 | | - | |
| 10075 | + | |
10116 | 10076 | | |
10117 | 10077 | | |
10118 | 10078 | | |
| |||
10346 | 10306 | | |
10347 | 10307 | | |
10348 | 10308 | | |
| 10309 | + | |
10349 | 10310 | | |
10350 | 10311 | | |
10351 | 10312 | | |
| |||
10713 | 10674 | | |
10714 | 10675 | | |
10715 | 10676 | | |
10716 | | - | |
| 10677 | + | |
10717 | 10678 | | |
10718 | 10679 | | |
10719 | 10680 | | |
| |||
11074 | 11035 | | |
11075 | 11036 | | |
11076 | 11037 | | |
11077 | | - | |
| 11038 | + | |
11078 | 11039 | | |
11079 | 11040 | | |
11080 | 11041 | | |
| |||
11457 | 11418 | | |
11458 | 11419 | | |
11459 | 11420 | | |
11460 | | - | |
| 11421 | + | |
| 11422 | + | |
11461 | 11423 | | |
11462 | 11424 | | |
11463 | 11425 | | |
| |||
11609 | 11571 | | |
11610 | 11572 | | |
11611 | 11573 | | |
11612 | | - | |
| 11574 | + | |
11613 | 11575 | | |
11614 | 11576 | | |
11615 | 11577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | | - | |
| 2687 | + | |
2688 | 2688 | | |
2689 | 2689 | | |
2690 | 2690 | | |
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
2780 | | - | |
| 2780 | + | |
2781 | 2781 | | |
2782 | 2782 | | |
2783 | 2783 | | |
| |||
2794 | 2794 | | |
2795 | 2795 | | |
2796 | 2796 | | |
2797 | | - | |
| 2797 | + | |
2798 | 2798 | | |
2799 | 2799 | | |
2800 | 2800 | | |
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | | - | |
| 2852 | + | |
2853 | 2853 | | |
2854 | 2854 | | |
2855 | 2855 | | |
| |||
3071 | 3071 | | |
3072 | 3072 | | |
3073 | 3073 | | |
3074 | | - | |
| 3074 | + | |
3075 | 3075 | | |
3076 | 3076 | | |
3077 | | - | |
| 3077 | + | |
3078 | 3078 | | |
3079 | 3079 | | |
3080 | 3080 | | |
| |||
3111 | 3111 | | |
3112 | 3112 | | |
3113 | 3113 | | |
3114 | | - | |
| 3114 | + | |
3115 | 3115 | | |
3116 | 3116 | | |
3117 | 3117 | | |
| |||
3197 | 3197 | | |
3198 | 3198 | | |
3199 | 3199 | | |
3200 | | - | |
| 3200 | + | |
3201 | 3201 | | |
3202 | 3202 | | |
3203 | 3203 | | |
3204 | 3204 | | |
3205 | 3205 | | |
3206 | 3206 | | |
3207 | | - | |
| 3207 | + | |
3208 | 3208 | | |
3209 | 3209 | | |
3210 | 3210 | | |
| |||
3233 | 3233 | | |
3234 | 3234 | | |
3235 | 3235 | | |
3236 | | - | |
| 3236 | + | |
3237 | 3237 | | |
3238 | 3238 | | |
3239 | 3239 | | |
| |||
3323 | 3323 | | |
3324 | 3324 | | |
3325 | 3325 | | |
3326 | | - | |
| 3326 | + | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
| |||
0 commit comments