This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 2fecdcc Fix latest pyflakes violations
2fecdcc is described below
commit 2fecdcc6a643541b91714d58b566f4a09be9a701
Author: Dave Brondsema <[email protected]>
AuthorDate: Wed May 5 14:58:41 2021 -0400
Fix latest pyflakes violations
---
Allura/allura/lib/widgets/forms.py | 1 -
ForgeTracker/forgetracker/import_support.py | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/Allura/allura/lib/widgets/forms.py
b/Allura/allura/lib/widgets/forms.py
index 360859a..27e7465 100644
--- a/Allura/allura/lib/widgets/forms.py
+++ b/Allura/allura/lib/widgets/forms.py
@@ -871,7 +871,6 @@ class NeighborhoodOverviewForm(ForgeForm):
'<td class="right"><div
class="%(ctx_name)s-%(inp_name)s-inp"><table class="input_inner">' \
'<tr><td><input type="text" class="%(inp_type)s"
name="%(ctx_name)s-%(inp_name)s" ' \
'value="%(inp_value)s"></td><td>%(inp_additional)s</td></tr></table></div></td></tr>\n'
% {
- 'ctx_id': ctx['id'],
'ctx_name': ctx['name'],
'inp_name': inp['name'],
'inp_value': inp['value'],
diff --git a/ForgeTracker/forgetracker/import_support.py
b/ForgeTracker/forgetracker/import_support.py
index 66e3b9f..89a55cb 100644
--- a/ForgeTracker/forgetracker/import_support.py
+++ b/ForgeTracker/forgetracker/import_support.py
@@ -207,7 +207,7 @@ class ImportSupport(object):
remapped[f] = v
elif callable(transform):
transform(remapped, f, v)
- elif transform is ():
+ elif transform == ():
self.custom(remapped, f, v, ticket_dict.get('status'))
else:
new_f, conv = transform