mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 05:04:24 +03:00
Optimise ImageMode.getmode
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
26f58e7afc
commit
396b96f28b
|
@ -42,7 +42,6 @@ class ModeDescriptor:
|
||||||
@lru_cache
|
@lru_cache
|
||||||
def getmode(mode: str) -> ModeDescriptor:
|
def getmode(mode: str) -> ModeDescriptor:
|
||||||
"""Gets a mode descriptor for the given mode."""
|
"""Gets a mode descriptor for the given mode."""
|
||||||
# if not _modes:
|
|
||||||
# initialize mode cache
|
# initialize mode cache
|
||||||
endian = "<" if sys.byteorder == "little" else ">"
|
endian = "<" if sys.byteorder == "little" else ">"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user