We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dbd66 commit 26df853Copy full SHA for 26df853
pypgstac/pypgstac/pypgstac.py
@@ -167,11 +167,12 @@ async def aiter(list: T) -> AsyncGenerator[bytes, None]:
167
f"Cannot load iterator with values of type {type(item)} (value {item})"
168
)
169
170
- line = "\n".join(
+ lines = "\n".join(
171
[item_str.rstrip().replace(r"\n", r"\\n").replace(r"\t", r"\\t")]
172
- ).encode("utf-8")
+ )
173
+ encoded_lines = (lines + "\n").encode("utf-8")
174
- yield line
175
+ yield encoded_lines
176
177
178
async def copy(iter: T, table: tables, conn: asyncpg.Connection) -> None:
0 commit comments