mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #4577 from radarhere/class
Updated example code to new-style class
This commit is contained in:
commit
556c87c904
|
@ -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