]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
trivial: Use implicit true/false for comparison
authorStephen Finucane <stephenfinucane@hotmail.com>
Mon, 19 Sep 2016 22:15:38 +0000 (23:15 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 24 Sep 2016 23:00:20 +0000 (00:00 +0100)
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/templatetags/listurl.py

index cee6753b9c97d8c78d5d4ad7622edae2c2b189dd..9d3b685521f95bb8fa9fcbe58e615fdb8b0f58ae 100644 (file)
@@ -81,7 +81,7 @@ class ListURLNode(template.defaulttags.URLNode):
 @register.tag
 def listurl(parser, token):
     bits = token.contents.split(' ', 1)
-    if len(bits) < 1:
+    if not bits:
         raise template.TemplateSyntaxError(
             "'%s' takes at least one argument (path to a view)" % bits[0])
     kwargs = {}