]> git.ipfire.org Git - thirdparty/patchwork.git/commit
trivial: Don't shadow built-ins
authorStephen Finucane <stephenfinucane@hotmail.com>
Mon, 19 Sep 2016 22:15:14 +0000 (23:15 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 24 Sep 2016 22:59:00 +0000 (23:59 +0100)
commitd848f046503dacc5423a840d483fe7e5edc07ca3
tree27367d0066257ea6b8ad95861dcece528caad506
parentb0ca6df4e1facd3b9144462579d355e8208904d7
trivial: Don't shadow built-ins

* Don't use 'str', 'id', 'max', etc. as variable names
* Remove unnecessary use of six.range
* Remove unnecessary use of six.map

There is one paramter in xmlrpc that cannot be renamed as it could
break some client code. noqa this instead.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
13 files changed:
patchwork/filters.py
patchwork/models.py
patchwork/paginator.py
patchwork/parser.py
patchwork/templatetags/listurl.py
patchwork/templatetags/person.py
patchwork/templatetags/syntax.py
patchwork/urls.py
patchwork/views/bundle.py
patchwork/views/help.py
patchwork/views/patch.py
patchwork/views/project.py
patchwork/views/xmlrpc.py