Merge pull request #4577 from radarhere/class

Updated example code to new-style class
This commit is contained in:
Hugo van Kemenade 2020-04-23 14:53:56 +03:00 committed by GitHub
commit 556c87c904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)