1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 13:03:47 +00:00

Merge pull request #1686 from cclauss/patch-1

Simplify if statement
This commit is contained in:
Mikhail Korobov 2016-01-18 11:57:06 +05:00
commit 9ef25d7b68

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)