Skip to content

Commit

Permalink
Corrected comment (#4068)
Browse files Browse the repository at this point in the history
Corrected comment
  • Loading branch information
hugovk committed Sep 16, 2019
2 parents e4ad7af + 0009646 commit 2eb447e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/Image.py
Expand Up @@ -2074,10 +2074,10 @@ def save(self, fp, format=None, **params):

if open_fp:
if params.get("append", False):
fp = builtins.open(filename, "r+b")
else:
# Open also for reading ("+"), because TIFF save_all
# writer needs to go back and edit the written data.
fp = builtins.open(filename, "r+b")
else:
fp = builtins.open(filename, "w+b")

try:
Expand Down

0 comments on commit 2eb447e

Please sign in to comment.