Optimise ImageMode.getmode

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2023-12-26 15:08:58 -07:00 committed by GitHub
parent 26f58e7afc
commit 396b96f28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ">"