Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename variable

  • Loading branch information...
commit ac68802a152450fa7e0ebae0dd718c1d56ef657e 1 parent 2276da8
@cgohlke cgohlke authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/matplotlib/image.py
View
4 lib/matplotlib/image.py
@@ -1193,8 +1193,8 @@ def pilread(fname):
return None
if cbook.is_string_like(fname):
# force close the file after reading the image
- with open(fname, "rb") as fp:
- image = Image.open(fp)
+ with open(fname, "rb") as fh:
+ image = Image.open(fh)
return pil_to_array(image)
else:
image = Image.open(fname)

0 comments on commit ac68802

Please sign in to comment.
Something went wrong with that request. Please try again.