Merge "Re-enable important py3k checks for monitoring"

This commit is contained in:
Zuul 2021-11-03 14:02:30 +00:00 committed by Gerrit Code Review
commit 821aff9947
2 changed files with 3 additions and 5 deletions

View File

@ -64,7 +64,8 @@ def range_to_list(csv_range=None):
""" """
if not csv_range: if not csv_range:
return [] return []
ranges = [(lambda L: range(L[0], L[-1] + 1))(map(int, r.split('-'))) ranges = [(lambda L: list(range(L[0], L[-1] + 1)))
(list(map(int, r.split('-'))))
for r in csv_range.split(',')] for r in csv_range.split(',')]
return [y for x in ranges for y in x] return [y for x in ranges for y in x]

View File

@ -137,10 +137,7 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
# R0915: Too many statements # R0915: Too many statements
# Disable Python3 checkers: # Disable Python3 checkers:
# W1618: no-absolute-import # W1618: no-absolute-import
# W1636: map-builtin-not-iterating disable=C0103, C0111, C0325, C0330, R0912, R0914, R0915, W0703, W1618
# W1638: range-builtin-not-iterating
disable=C0103, C0111, C0325, C0330, R0912, R0914, R0915, W0703, W1618, W1636,
W1638
[REPORTS] [REPORTS]