Apply refurb/ruff rule FURB115 (#11838)

This commit is contained in:
Dimitri Papadopoulos Orfanos
2024-01-04 03:12:43 +00:00
committed by GitHub
parent 9910e5c7e8
commit 97b7e63739
+1 -1
View File
@@ -287,7 +287,7 @@ class LiteralIncludeReader:
'set of "lines"'))
lines = [lines[n] for n in linelist if n < len(lines)]
if lines == []:
if not lines:
raise ValueError(__('Line spec %r: no lines pulled from include file %r') %
(linespec, self.filename))