mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Fix work in progress line encoding in reader.py to not touch read data if self.encoding is None
This commit is contained in:
parent
d9c923590e
commit
b323952e63
@ -296,7 +296,10 @@ class UnbufferedFileReader:
|
||||
% self.fd.tell())
|
||||
last_line_read = True
|
||||
|
||||
yield line
|
||||
if self.encoding is not None:
|
||||
yield line.encode(self.encoding)
|
||||
else:
|
||||
yield line
|
||||
|
||||
return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user