Skip to content

Commit 78c79f1

Browse files
committed
Remove extra newline in readline_timed().
1 parent 0bb5400 commit 78c79f1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/firebird/driver/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5723,9 +5723,7 @@ def readline_timed(self, timeout: int) -> str | Sentinel | None:
57235723
data = self.response.read_sized_string(encoding=self.encoding, errors=self.encoding_errors)
57245724
if self.response.get_tag() == SrvInfoCode.TIMEOUT:
57255725
return TIMEOUT
5726-
if data:
5727-
return data + '\n'
5728-
return None
5726+
return data if data else None
57295727
def readline(self) -> str | None:
57305728
"""Get next line of textual output from last service query.
57315729

0 commit comments

Comments
 (0)