Issue #23094: Fixed readline with frames in Python implementation of pickle.
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 663773f..e38ecac 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -242,7 +242,7 @@
             if not data:
                 self.current_frame = None
                 return self.file_readline()
-            if data[-1] != b'\n':
+            if data[-1] != b'\n'[0]:
                 raise UnpicklingError(
                     "pickle exhausted before end of frame")
             return data