Skip to content

Commit

Permalink
fix: Python version <3.9 does not support parenthesized context expre…
Browse files Browse the repository at this point in the history
…ssions
  • Loading branch information
eyeonus committed May 6, 2024
1 parent 1358479 commit aab81db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedangerous/plugins/eddblink_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def importListings(self, listings_file):
# to get any benefits from constructing transactions, and blowing up
# the WAL and memory usage by making massive transactions.
max_transaction_items, transaction_items = 32 * 1024, 0
with (pbar.Progress(total, 40, prefix="Processing", style=pbar.LongRunningCountBar) as prog,
listings_path.open("r", encoding="utf-8", errors="ignore") as fh):
with pbar.Progress(total, 40, prefix="Processing", style=pbar.LongRunningCountBar) as prog,\
listings_path.open("r", encoding="utf-8", errors="ignore") as fh:
cursor = db.cursor()
cursor.execute("BEGIN TRANSACTION")

Expand Down

0 comments on commit aab81db

Please sign in to comment.