diff --git a/PIL/Image.py b/PIL/Image.py index d90996a57..f09168708 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1623,12 +1623,12 @@ class Image(object): open_fp = False if isPath(fp): filename = fp - open_fp=True + open_fp = True elif sys.version_info >= (3, 4): from pathlib import Path if isinstance(fp, Path): filename = str(fp.resolve()) - open_fp=True + open_fp = True elif hasattr(fp, "name") and isPath(fp.name): # only set the name for metadata purposes filename = fp.name