Skip to content

Commit

Permalink
sq_entry_list.py: more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 6, 2024
1 parent 85a6e70 commit 04f342f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyglossary/sq_entry_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
from .glossary_types import EntryType, RawEntryType
from .sort_keys import NamedSortKey

# from typing import Self
# typing.Self is new in Python 3.11.


__all__ = ["SqEntryList"]

Expand Down Expand Up @@ -208,7 +205,6 @@ def __del__(self) -> None:
def __iter__(self) -> Iterator[EntryType]:
if self._cur is None:
raise Error("SQLite cursor is closed")
query = f"SELECT pickle FROM data ORDER BY {self._orderBy}"
self._cur.execute(query)
self._cur.execute(f"SELECT pickle FROM data ORDER BY {self._orderBy}")
for row in self._cur:
yield self._decode(row[0])

0 comments on commit 04f342f

Please sign in to comment.