Update src/PIL/PpmImagePlugin.py

Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo 2019-03-06 00:01:56 +11:00 committed by GitHub
parent 4be51c46eb
commit 353d2a34ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class PpmImageFile(ImageFile.ImageFile):
self.custom_mimetype = {
b"P4": "image/x-portable-bitmap",
b"P5": "image/x-portable-graymap",
b"P6": "image/x-portable-pixmap"
b"P6": "image/x-portable-pixmap",
}.get(magic_number)
if mode == "1":