Skip to content

Commit 5e7a288

Browse files
author
James William Pye
committed
Fix encodes().
1 parent ae9af4d commit 5e7a288

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/protocol/typio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def encodes(self, iter):
604604
Encode the items in the iterable in the configured encoding.
605605
"""
606606
for k in iter:
607-
yield self._encode(k)
607+
yield self._encode(k)[0]
608608

609609
def resolve_pack(self, typid):
610610
return self.resolve(typid)[0] or self.encode

0 commit comments

Comments
 (0)