Updated example code to new-style class [ci skip]

This commit is contained in:
Andrew Murray 2020-04-23 20:05:30 +10:00
parent ccd9a97183
commit b65e72b2fc

View File

@ -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)