mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Merge pull request #2953 from radarhere/docstring
Changed tutorial code to use docstring
This commit is contained in:
commit
b9ea73738e
|
@ -175,8 +175,7 @@ Rolling an image
|
|||
::
|
||||
|
||||
def roll(image, delta):
|
||||
"Roll an image sideways"
|
||||
|
||||
"""Roll an image sideways."""
|
||||
xsize, ysize = image.size
|
||||
|
||||
delta = delta % xsize
|
||||
|
|
Loading…
Reference in New Issue
Block a user