Rename unused loop variables to _ in soc.views.helper.params module.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/params.py Wed Mar 04 20:49:19 2009 +0000
+++ b/app/soc/views/helper/params.py Wed Mar 04 20:50:27 2009 +0000
@@ -402,7 +402,7 @@
admin_form.base_fields = copy.deepcopy(admin_form.base_fields)
# replace all widgets with PTW's
- for key, value in admin_form.base_fields.iteritems():
+ for _, value in admin_form.base_fields.iteritems():
if not isinstance(value, forms.fields.Field):
continue
@@ -451,6 +451,6 @@
if depth is None:
return linkable.SCOPE_PATH_ARG_PATTERN
- regexps = [linkable.LINK_ID_PATTERN_CORE for i in range(depth)]
+ regexps = [linkable.LINK_ID_PATTERN_CORE for _ in range(depth)]
regexp = '/'.join(regexps)
return r'(?P<scope_path>%s)' % regexp