From cd735e377c2a26bc8ebb925bf6031429549faadf Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 18 Jan 2016 07:45:36 +0100 Subject: [PATCH] Simplify if statement --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)