mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-07 17:14:09 +02:00
UpdateWrapper.__iter__ was using len(line) (character count) to track progress, but the progress bar is initialised with os.path.getsize() (byte count). For utf-16-le each character is 2 bytes, so the bar only ever reached ~50% before the insert completed. Use TextIOWrapper.buffer.tell() when available to report the true number of bytes consumed, falling back to len(line) for non-TextIOWrapper objects. Fixes #439 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| db.py | ||
| hookspecs.py | ||
| migrations.py | ||
| plugins.py | ||
| py.typed | ||
| recipes.py | ||
| utils.py | ||