Skip to content

Commit

Permalink
allow python <3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaoster committed Jan 21, 2022
1 parent ff1d2e3 commit 852409a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvs_to_sqlite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def table_exists(conn, table):
def csv_md5_checksum(path):
with open(path, "rb") as f:
file_hash = hashlib.md5()
while chunk := f.read(8192):
for chunk in iter(lambda: f.read(8192), b''):
file_hash.update(chunk)
return file_hash.hexdigest()

Expand Down

0 comments on commit 852409a

Please sign in to comment.