diff options
author | Stephen Finucane <stephenfinucane@hotmail.com> | 2016-09-19 23:15:38 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfinucane@hotmail.com> | 2016-09-25 00:00:20 +0100 |
commit | 696dab8dacad39c9227772e51820fab0c9585f64 (patch) | |
tree | 256335bdf131944e0cd932f6be17568bb7f56628 | |
parent | 826299adfe696a79dd6fec17c217ca25110275ad (diff) | |
download | patchwork-696dab8dacad39c9227772e51820fab0c9585f64.tar patchwork-696dab8dacad39c9227772e51820fab0c9585f64.tar.gz |
trivial: Use implicit true/false for comparison
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
-rw-r--r-- | patchwork/templatetags/listurl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py index cee6753..9d3b685 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 = {} |