File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 15
15
from .filename_parser import (types_filenames , TypesFilenamesError ,
16
16
splitext_addext )
17
17
from .openers import ImageOpener
18
- from .deprecated import deprecate_with_version
19
18
20
19
21
20
class ImageFileError (Exception ):
@@ -79,7 +78,6 @@ class FileBasedImage(object):
79
78
80
79
methods:
81
80
82
- * get_header() (deprecated, use header property instead)
83
81
* to_filename(fname) - writes data to filename(s) derived from
84
82
``fname``, where the derivation may differ between formats.
85
83
* to_file_map() - save image to files with which the image is already
@@ -208,15 +206,6 @@ def __getitem__(self, key):
208
206
"""
209
207
raise TypeError ("Cannot slice image objects." )
210
208
211
- @deprecate_with_version ('get_header method is deprecated.\n '
212
- 'Please use the ``img.header`` property '
213
- 'instead.' ,
214
- '2.1' , '4.0' )
215
- def get_header (self ):
216
- """ Get header from image
217
- """
218
- return self .header
219
-
220
209
def get_filename (self ):
221
210
""" Fetch the image filename
222
211
You can’t perform that action at this time.
0 commit comments