From dfca48df1b64380c9a8a7a0dae3982c980e75902 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 10 Aug 2020 21:26:41 +1000 Subject: [PATCH] Combine extensions into register_extensions [ci skip] --- docs/handbook/writing-your-own-file-decoder.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/handbook/writing-your-own-file-decoder.rst b/docs/handbook/writing-your-own-file-decoder.rst index 471ae3377..4314e8b5a 100644 --- a/docs/handbook/writing-your-own-file-decoder.rst +++ b/docs/handbook/writing-your-own-file-decoder.rst @@ -87,8 +87,10 @@ true color. Image.register_open(SpamImageFile.format, SpamImageFile, _accept) - Image.register_extension(SpamImageFile.format, ".spam") - Image.register_extension(SpamImageFile.format, ".spa") # DOS version + Image.register_extensions(SpamImageFile.format, [ + ".spam", + ".spa", # DOS version + ]) The format handler must always set the