codestyle
This commit is contained in:
parent
b7b90083e6
commit
29aad37743
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user