From a0fa540b0b630e1c32676c200cdc17c02ef3eced Mon Sep 17 00:00:00 2001 From: Yulv-git Date: Sat, 14 May 2022 12:46:46 +0800 Subject: [PATCH] Fix some typos. --- docs/releasenotes/8.0.0.rst | 2 +- src/PIL/Image.py | 2 +- src/PIL/SpiderImagePlugin.py | 2 +- src/libImaging/GifDecode.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/releasenotes/8.0.0.rst b/docs/releasenotes/8.0.0.rst index 2ff9b3799..fe2658047 100644 --- a/docs/releasenotes/8.0.0.rst +++ b/docs/releasenotes/8.0.0.rst @@ -174,7 +174,7 @@ Previously, if a BMP file was too large, an ``OSError`` would be raised. Now, Dark theme for docs ^^^^^^^^^^^^^^^^^^^ -The https://pillow.readthedocs.io documentation will use a dark theme if the the user has requested the system use one. Uses the ``prefers-color-scheme`` CSS media query. +The https://pillow.readthedocs.io documentation will use a dark theme if the user has requested the system use one. Uses the ``prefers-color-scheme`` CSS media query. diff --git a/src/PIL/Image.py b/src/PIL/Image.py index c141da09f..fead48b29 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1324,7 +1324,7 @@ class Image: def getextrema(self): """ - Gets the the minimum and maximum pixel values for each band in + Gets the minimum and maximum pixel values for each band in the image. :returns: For a single-band image, a 2-tuple containing the diff --git a/src/PIL/SpiderImagePlugin.py b/src/PIL/SpiderImagePlugin.py index 1a72f5c04..d5d6f7b18 100644 --- a/src/PIL/SpiderImagePlugin.py +++ b/src/PIL/SpiderImagePlugin.py @@ -15,7 +15,7 @@ # ## -# Image plugin for the Spider image format. This format is is used +# Image plugin for the Spider image format. This format is used # by the SPIDER software, in processing image data from electron # microscopy and tomography. ## diff --git a/src/libImaging/GifDecode.c b/src/libImaging/GifDecode.c index 0be4771cd..92b2607b4 100644 --- a/src/libImaging/GifDecode.c +++ b/src/libImaging/GifDecode.c @@ -125,7 +125,7 @@ ImagingGifDecode(Imaging im, ImagingCodecState state, UINT8 *buffer, Py_ssize_t context->blocksize--; - /* New bits are shifted in from from the left. */ + /* New bits are shifted in from the left. */ context->bitbuffer |= (INT32)c << context->bitcount; context->bitcount += 8;