Skip to content

Commit

Permalink
Renamed decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 21, 2021
1 parent 5e63097 commit 8f5d2b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PIL/PpmImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

MODES = {
# standard, plain
b"P1": ("plain", "1"),
b"P2": ("plain", "L"),
b"P3": ("plain", "RGB"),
b"P1": ("ppm_plain", "1"),
b"P2": ("ppm_plain", "L"),
b"P3": ("ppm_plain", "RGB"),
# standard, raw
b"P4": ("raw", "1"),
b"P5": ("raw", "L"),
Expand Down Expand Up @@ -351,7 +351,7 @@ def _save(im, fp, filename):
#
# --------------------------------------------------------------------

Image.register_decoder("plain", PpmPlainDecoder)
Image.register_decoder("ppm_plain", PpmPlainDecoder)
Image.register_open(PpmImageFile.format, PpmImageFile, _accept)
Image.register_save(PpmImageFile.format, _save)

Expand Down

0 comments on commit 8f5d2b4

Please sign in to comment.