Blackened everything
This commit is contained in:
parent
e213647217
commit
5966ce29be
57 changed files with 1938 additions and 1414 deletions
|
|
@ -3,6 +3,7 @@ import io
|
|||
from ._common import *
|
||||
from . import _webp
|
||||
|
||||
|
||||
def remove(src, new_file=None):
|
||||
"""
|
||||
py:function:: piexif.remove(filename)
|
||||
|
|
@ -19,7 +20,7 @@ def remove(src, new_file=None):
|
|||
src_data = src
|
||||
file_type = "webp"
|
||||
else:
|
||||
with open(src, 'rb') as f:
|
||||
with open(src, "rb") as f:
|
||||
src_data = f.read()
|
||||
output_is_file = True
|
||||
if src_data[0:2] == b"\xff\xd8":
|
||||
|
|
@ -53,4 +54,4 @@ def remove(src, new_file=None):
|
|||
with open(src, "wb+") as f:
|
||||
f.write(new_data)
|
||||
else:
|
||||
raise ValueError("Give a second argument to 'remove' to output file")
|
||||
raise ValueError("Give a second argument to 'remove' to output file")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue