mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46: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):
|
def roll(image, delta):
|
||||||
"Roll an image sideways"
|
"""Roll an image sideways."""
|
||||||
|
|
||||||
xsize, ysize = image.size
|
xsize, ysize = image.size
|
||||||
|
|
||||||
delta = delta % xsize
|
delta = delta % xsize
|
||||||
|
|
Loading…
Reference in New Issue
Block a user