Use six.moves.reduce instead of builtin reduce
Bug #1530249 reported by
HouMing Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Ankit Agrawal | ||
Glance |
Fix Released
|
Undecided
|
HouMing Wang |
Bug Description
Builtin function 'reduce' in Python 2 has been moved to standard
library module in Python 3 [1]. To make code compatible, we should
replace reduce(expr) with six.moves.
Changed in glance: | |
assignee: | nobody → HouMing Wang (houming-wang) |
Changed in glance: | |
status: | New → In Progress |
Changed in cinder: | |
assignee: | nobody → LiuNanke (nanke-liu) |
status: | New → In Progress |
Changed in cinder: | |
status: | In Progress → Invalid |
no longer affects: | cinder |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/262523 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=9ae3d53a8df 4979e28eb49cc75 2ee5b7cd087f09
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9ae3d53a8df4979 e28eb49cc752ee5 b7cd087f09
Author: houming-wang <email address hidden>
Date: Wed Dec 30 08:55:30 2015 -0500
Use six.moves.reduce instead of builtin reduce
Builtin function 'reduce' in Python 2 has been moved to standard reduce( expr)
library module in Python 3 [1]. To make code compatible, we should
replace reduce(expr) with six.moves.
[1] http:// python3porting. com/stdlib. html#moved- builtins
Change-Id: Idca3420918471c 41548a871d043fa fc983aa7ee6
Closes-Bug: #1530249