Apply refurb/ruff rule FURB115 (#11838)

This commit is contained in:
Dimitri Papadopoulos Orfanos 2024-01-04 04:12:43 +01:00 committed by GitHub
parent 9910e5c7e8
commit 97b7e63739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))