mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
py3k: Import reduce function
reduce() is no longer a built-in function in py3k.
This commit is contained in:
parent
da1d715b8e
commit
aeab3f5911
|
@ -15,6 +15,8 @@
|
|||
# See the README file for information on usage and redistribution.
|
||||
#
|
||||
|
||||
from functools import reduce
|
||||
|
||||
class Filter:
|
||||
pass
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
import Image
|
||||
import operator
|
||||
from functools import reduce
|
||||
|
||||
##
|
||||
# (New in 1.1.3) The <b>ImageOps</b> module contains a number of
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
import Image
|
||||
import operator, math
|
||||
from functools import reduce
|
||||
|
||||
##
|
||||
# The <b>ImageStat</b> module calculates global statistics for an
|
||||
|
|
Loading…
Reference in New Issue
Block a user