Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Simplify if statement

cclausscd735e377c2a
diff --git a/conftest.py b/conftest.py
index b0ac1badd..8b4faf8fc 100644
--- a/conftest.py
+++ b/conftest.py
@@ -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)