mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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
|
||||
def getmode(mode: str) -> ModeDescriptor:
|
||||
"""Gets a mode descriptor for the given mode."""
|
||||
# if not _modes:
|
||||
# initialize mode cache
|
||||
endian = "<" if sys.byteorder == "little" else ">"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user