Corrected comment (#4068)

Corrected comment
This commit is contained in:
Hugo van Kemenade 2019-09-16 14:17:19 +03:00 committed by GitHub
commit 2eb447e6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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