[python-bugzilla] [PATCH 03/13] Replace reduce usage

abn at redhat.com abn at redhat.com
Tue Oct 29 13:22:22 UTC 2013


From: Arun Babu Neelicattu <abn at redhat.com>

- reduce is no longer a built-in function
---
 bin/bugzilla | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/bugzilla b/bin/bugzilla
index cacaf9e..5b32030 100755
--- a/bin/bugzilla
+++ b/bin/bugzilla
@@ -845,8 +845,7 @@ def _do_new(bz, opt):
 
 
 def _do_modify(bz, parser, opt, args):
-    bugid_list = reduce(lambda l1, l2: l1 + l2,
-                        [a.split(",") for a in args])
+    bugid_list = [bugid for a in args for bugid in a.split(',')]
 
     add_wb, rm_wb, set_wb = _parse_triset(opt.whiteboard)
     add_devwb, rm_devwb, set_devwb = _parse_triset(opt.devel_whiteboard)
-- 
1.8.3.1



More information about the python-bugzilla mailing list