mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-21 07:32:44 +00:00
Simplify if statement
This commit is contained in:
parent
3f1f15bc4d
commit
cd735e377c
@ -34,7 +34,7 @@ if (twisted_version.major, twisted_version.minor, twisted_version.micro) >= (15,
|
||||
if six.PY3:
|
||||
for line in open('tests/py3-ignores.txt'):
|
||||
file_path = line.strip()
|
||||
if len(file_path) > 0 and file_path[0] != '#':
|
||||
if file_path and file_path[0] != '#':
|
||||
collect_ignore.append(file_path)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user