mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Updated example code to new-style class [ci skip]
This commit is contained in:
parent
ccd9a97183
commit
b65e72b2fc
|
@ -2325,7 +2325,7 @@ class Image:
|
|||
It may also be an object with a :py:meth:`~method.getdata` method
|
||||
that returns a tuple supplying new **method** and **data** values::
|
||||
|
||||
class Example(object):
|
||||
class Example:
|
||||
def getdata(self):
|
||||
method = Image.EXTENT
|
||||
data = (0, 0, 100, 100)
|
||||
|
|
Loading…
Reference in New Issue
Block a user