From b5c0208102879fd578dc96511f4223f32e636213 Mon Sep 17 00:00:00 2001 From: unsub42 <131689347+unsub42@users.noreply.github.com> Date: Tue, 20 Jun 2023 19:37:02 +0000 Subject: [PATCH] Fix splitlines bug. --- filigran_sseclient/sseclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filigran_sseclient/sseclient.py b/filigran_sseclient/sseclient.py index e5347e4..fd9781b 100644 --- a/filigran_sseclient/sseclient.py +++ b/filigran_sseclient/sseclient.py @@ -171,7 +171,7 @@ def parse(cls, raw): and return a Event object. """ msg = cls() - for line in raw.splitlines(): + for line in raw.split('\n'): m = cls.sse_line_pattern.match(line) if m is None: # Malformed line. Discard but warn.