mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
commit
2eb447e6fb
|
@ -2074,10 +2074,10 @@ class Image(object):
|
|||
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user