diff --git a/Tests/test_file_mpo.py b/Tests/test_file_mpo.py index 3ae26ff91..20589539b 100644 --- a/Tests/test_file_mpo.py +++ b/Tests/test_file_mpo.py @@ -52,7 +52,7 @@ class TestFileMpo(PillowTestCase): for test_file in test_files: im = Image.open(test_file) mpinfo = im._getmp() - self.assertEqual(mpinfo[45056], '0100') + self.assertEqual(mpinfo[45056], b'0100') self.assertEqual(mpinfo[45057], 2) def test_mp_attribute(self): diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index bfc94058a..8c9bb36ec 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -591,14 +591,14 @@ first sprite in the file is loaded. You can use :py:meth:`~file.seek` and MPO ^^^ -PIL identifies and reads Multi Picture Object (MPO) files, loading the primary +Pillow identifies and reads Multi Picture Object (MPO) files, loading the primary image when first opened. The :py:meth:`~file.seek` and :py:meth:`~file.tell` methods may be used to read other pictures from the file. The pictures are zero-indexed and random access is supported. MIC (read only) -PIL identifies and reads Microsoft Image Composer (MIC) files. When opened, the +Pillow identifies and reads Microsoft Image Composer (MIC) files. When opened, the first sprite in the file is loaded. You can use :py:meth:`~file.seek` and :py:meth:`~file.tell` to read other sprites from the file.