mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply refurb/ruff rule FURB115 (#11838)
This commit is contained in:
parent
9910e5c7e8
commit
97b7e63739
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user