mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +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.
|
# See the README file for information on usage and redistribution.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
class Filter:
|
class Filter:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
import Image
|
import Image
|
||||||
import operator
|
import operator
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
##
|
##
|
||||||
# (New in 1.1.3) The <b>ImageOps</b> module contains a number of
|
# (New in 1.1.3) The <b>ImageOps</b> module contains a number of
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
import Image
|
import Image
|
||||||
import operator, math
|
import operator, math
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
##
|
##
|
||||||
# The <b>ImageStat</b> module calculates global statistics for an
|
# The <b>ImageStat</b> module calculates global statistics for an
|
||||||
|
|
Loading…
Reference in New Issue
Block a user