Commit 8d0aea91 authored by Christophe Benz's avatar Christophe Benz
Browse files

API accepts Path-like objects since Python 3.6

parent 53a07434
Pipeline #111986 failed with stage
in 13 seconds
......@@ -54,8 +54,8 @@ def download_and_extract(url, target_dir: Path, dir_name):
# Extracts all CSV
csv_dir = target_dir / dir_name
with zipfile.ZipFile(str(zip_filepath)) as zip_archive:
with zipfile.ZipFile(zip_filepath) as zip_archive:
zip_archive.extractall(csv_dir)'Zip [%s] extracted.', str(zip_filepath))
# And removes zip archive
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment