← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1530249] Re: Use six.moves.reduce instead of builtin reduce

 

Reviewed:  https://review.openstack.org/262523
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=9ae3d53a8df4979e28eb49cc752ee5b7cd087f09
Submitter: Jenkins
Branch:    master

commit 9ae3d53a8df4979e28eb49cc752ee5b7cd087f09
Author: houming-wang <houming.wang@xxxxxxxxxxxx>
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
    library module in Python 3 [1]. To make code compatible, we should
    replace reduce(expr) with six.moves.reduce(expr)
    
    [1] http://python3porting.com/stdlib.html#moved-builtins
    
    Change-Id: Idca3420918471c41548a871d043fafc983aa7ee6
    Closes-Bug: #1530249


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1530249

Title:
   Use six.moves.reduce instead of builtin reduce

Status in Glance:
  Fix Released

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.reduce(expr)

  [1] http://python3porting.com/stdlib.html#moved-builtins

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1530249/+subscriptions


References