Skip to content

Commit

Permalink
Optimise ImageMode.getmode
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
hugovk and radarhere committed Dec 26, 2023
1 parent 26f58e7 commit 396b96f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PIL/ImageMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def __str__(self) -> str:
@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 ">"

Expand Down

0 comments on commit 396b96f

Please sign in to comment.