summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/PIL/PcxImagePlugin.py
diff options
context:
space:
mode:
authorkickbutt <[email protected]>2024-01-23 23:36:43 +0300
committerkickbutt <[email protected]>2024-01-23 23:55:22 +0300
commitfe742a0b69a530f86d1ea7aa84978d673256f8b7 (patch)
treea045a5eb8dba770797e84d0b233098605396027d /contrib/python/Pillow/py3/PIL/PcxImagePlugin.py
parentbd7d89b121ae7b9f4427766292c950fcc91c2975 (diff)
Fix separator in CUDA_ARCHITECTURES
Diffstat (limited to 'contrib/python/Pillow/py3/PIL/PcxImagePlugin.py')
-rw-r--r--contrib/python/Pillow/py3/PIL/PcxImagePlugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/python/Pillow/py3/PIL/PcxImagePlugin.py b/contrib/python/Pillow/py3/PIL/PcxImagePlugin.py
index 854d9e83ee7..98ecefd0514 100644
--- a/contrib/python/Pillow/py3/PIL/PcxImagePlugin.py
+++ b/contrib/python/Pillow/py3/PIL/PcxImagePlugin.py
@@ -24,6 +24,7 @@
#
# See the README file for information on usage and redistribution.
#
+from __future__ import annotations
import io
import logging
@@ -91,7 +92,7 @@ class PcxImageFile(ImageFile.ImageFile):
self.fp.seek(-769, io.SEEK_END)
s = self.fp.read(769)
if len(s) == 769 and s[0] == 12:
- # check if the palette is linear greyscale
+ # check if the palette is linear grayscale
for i in range(256):
if s[i * 3 + 1 : i * 3 + 4] != o8(i) * 3:
mode = rawmode = "P"
@@ -203,7 +204,7 @@ def _save(im, fp, filename):
palette += b"\x00" * (768 - len(palette))
fp.write(palette) # 768 bytes
elif im.mode == "L":
- # greyscale palette
+ # grayscale palette
fp.write(o8(12))
for i in range(256):
fp.write(o8(i) * 3)