Skip to content

Commit 396b96f

Browse files
hugovkradarhere
andauthored
Optimise ImageMode.getmode
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 26f58e7 commit 396b96f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/PIL/ImageMode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def __str__(self) -> str:
4242
@lru_cache
4343
def getmode(mode: str) -> ModeDescriptor:
4444
"""Gets a mode descriptor for the given mode."""
45-
# if not _modes:
4645
# initialize mode cache
4746
endian = "<" if sys.byteorder == "little" else ">"
4847

0 commit comments

Comments
 (0)