We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb7774 commit 8f2f97aCopy full SHA for 8f2f97a
lib/matplotlib/image.py
@@ -1478,9 +1478,10 @@ def imread(fname, format=None):
1478
if isinstance(fname, str):
1479
parsed = parse.urlparse(fname)
1480
if len(parsed.scheme) > 1: # Pillow doesn't handle URLs directly.
1481
- cbook.warn_deprecated(
+ _api.warn_deprecated(
1482
"3.4", message="Directly reading images from URLs is "
1483
- "deprecated. Please open the URL for reading and pass the "
+ "deprecated since %(since)s and will no longer be supported "
1484
+ "%(removal)s. Please open the URL for reading and pass the "
1485
"result to Pillow, e.g. with "
1486
"``PIL.Image.open(urllib.request.urlopen(url))``.")
1487
# hide imports to speed initial import on systems with slow linkers
0 commit comments