Skip to content

Commit 5597c3d

Browse files
author
James William Pye
committed
Remove reference to "unicode".
1 parent 2299ee6 commit 5597c3d

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
@@ -253,7 +253,7 @@ def row_pack(seq, typio, encode):
253253
ob = seq[x]
254254
if ob is None:
255255
yield (StringFormat, None)
256-
elif io is None or (not io is str and type(ob) in (unicode, str)):
256+
elif io is None or (not io is bytes and type(ob) is str):
257257
# StringFormat
258258
yield (StringFormat, encode(ob))
259259
else:

0 commit comments

Comments
 (0)