mirror of
https://forge.chapril.org/tykayn/mapillary_download
synced 2025-12-04 17:20:07 +01:00
use a with statement to update image metadata
This commit is contained in:
parent
b9060bc2ed
commit
4fcb62f893
2 changed files with 10 additions and 15 deletions
|
|
@ -37,6 +37,9 @@ class Writer():
|
|||
self.updated_exif = {}
|
||||
self.updated_xmp = {}
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, *args):
|
||||
self.image.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue