Skip to content

Commit 2eb447e

Browse files
authored
Corrected comment (#4068)
Corrected comment
2 parents e4ad7af + 0009646 commit 2eb447e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PIL/Image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,10 +2074,10 @@ def save(self, fp, format=None, **params):
20742074

20752075
if open_fp:
20762076
if params.get("append", False):
2077-
fp = builtins.open(filename, "r+b")
2078-
else:
20792077
# Open also for reading ("+"), because TIFF save_all
20802078
# writer needs to go back and edit the written data.
2079+
fp = builtins.open(filename, "r+b")
2080+
else:
20812081
fp = builtins.open(filename, "w+b")
20822082

20832083
try:

0 commit comments

Comments
 (0)