Thanks to visit codestin.com Credit goes to github.com
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.
2 parents bdb7774 + 8f2f97a commit dffe59fCopy full SHA for dffe59f
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