From: Stephen Finucane Date: Mon, 19 Sep 2016 22:15:38 +0000 (+0100) Subject: trivial: Use implicit true/false for comparison X-Git-Tag: v2.0.0-rc1~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696dab8dacad39c9227772e51820fab0c9585f64;p=thirdparty%2Fpatchwork.git trivial: Use implicit true/false for comparison Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py index cee6753b..9d3b6855 100644 --- a/patchwork/templatetags/listurl.py +++ b/patchwork/templatetags/listurl.py @@ -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 = {}