codestyle

This commit is contained in:
tvh 2023-11-02 21:25:03 +01:00
parent b7b90083e6
commit 29aad37743

View File

@ -184,12 +184,12 @@ def consume_file(
with open( with open(
os.path.join(inputfile.parent, filename), os.path.join(inputfile.parent, filename),
"wb", "wb",
) as f: ) as target:
logger.info( logger.info(
f"extracting {filename} from zipfile {inputfile}", f"extracting {filename} from zipfile {inputfile}",
) )
with source, f: with source, target:
shutil.copyfileobj(source, f) shutil.copyfileobj(source, target)
# continue with consumption if no barcode was found # continue with consumption if no barcode was found
document = Consumer().try_consume_file( document = Consumer().try_consume_file(
os.path.join(inputfile.parent, filename), os.path.join(inputfile.parent, filename),