File tree 4 files changed +16
-24
lines changed
4 files changed +16
-24
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,6 @@ def test_safeblock(self):
94
94
95
95
assert_image_equal (im1 , im2 )
96
96
97
- def test_raise_ioerror (self ):
98
- with pytest .raises (IOError ):
99
- with pytest .warns (DeprecationWarning ) as record :
100
- ImageFile .raise_ioerror (1 )
101
- assert len (record ) == 1
102
-
103
97
def test_raise_oserror (self ):
104
98
with pytest .raises (OSError ):
105
99
ImageFile .raise_oserror (1 )
Original file line number Diff line number Diff line change @@ -42,15 +42,6 @@ Image._showxv
42
42
Use :py:meth: `.Image.Image.show ` instead. If custom behaviour is required, use
43
43
:py:func: `.ImageShow.register ` to add a custom :py:class: `.ImageShow.Viewer ` class.
44
44
45
- ImageFile.raise_ioerror
46
- ~~~~~~~~~~~~~~~~~~~~~~~
47
-
48
- .. deprecated :: 7.2.0
49
-
50
- ``IOError `` was merged into ``OSError `` in Python 3.3.
51
- So, ``ImageFile.raise_ioerror `` will be removed in Pillow 9.0.0 (2022-01-02).
52
- Use ``ImageFile.raise_oserror `` instead.
53
-
54
45
Tk/Tcl 8.4
55
46
~~~~~~~~~~
56
47
@@ -98,6 +89,16 @@ Removed features
98
89
Deprecated features are only removed in major releases after an appropriate
99
90
period of deprecation has passed.
100
91
92
+ ImageFile.raise_ioerror
93
+ ~~~~~~~~~~~~~~~~~~~~~~~
94
+
95
+ .. deprecated :: 7.2.0
96
+ .. versionremoved :: 9.0.0
97
+
98
+ ``IOError `` was merged into ``OSError `` in Python 3.3.
99
+ So, ``ImageFile.raise_ioerror `` has been removed.
100
+ Use ``ImageFile.raise_oserror `` instead.
101
+
101
102
PILLOW_VERSION constant
102
103
~~~~~~~~~~~~~~~~~~~~~~~
103
104
Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ PILLOW_VERSION constant
8
8
^^^^^^^^^^^^^^^^^^^^^^^
9
9
10
10
``PILLOW_VERSION `` has been removed. Use ``__version__ `` instead.
11
+
12
+ ImageFile.raise_ioerror
13
+ ~~~~~~~~~~~~~~~~~~~~~~~
14
+
15
+ ``IOError `` was merged into ``OSError `` in Python 3.3. So, ``ImageFile.raise_ioerror ``
16
+ has been removed. Use ``ImageFile.raise_oserror `` instead.
Original file line number Diff line number Diff line change @@ -67,15 +67,6 @@ def raise_oserror(error):
67
67
raise OSError (message + " when reading image file" )
68
68
69
69
70
- def raise_ioerror (error ):
71
- warnings .warn (
72
- "raise_ioerror is deprecated and will be removed in Pillow 9 (2022-01-02). "
73
- "Use raise_oserror instead." ,
74
- DeprecationWarning ,
75
- )
76
- return raise_oserror (error )
77
-
78
-
79
70
def _tilesort (t ):
80
71
# sort on offset
81
72
return t [2 ]
You can’t perform that action at this time.
0 commit comments