Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Jun 30, 2012
1 parent 2276da8 commit ac68802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/image.py
Expand Up @@ -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)
Expand Down

0 comments on commit ac68802

Please sign in to comment.