1
0
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:
cclauss 2016-01-18 07:45:36 +01:00
parent 3f1f15bc4d
commit cd735e377c

View File

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