diff --git a/Lib/poplib.py b/Lib/poplib.py index 0caed18205c..ead661fdac6 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py @@ -123,7 +123,7 @@ class POP3: resp, o = self._getline() if self._debugging > 1: print('*resp*', repr(resp)) c = resp[:1] - if c != '+': + if c != b'+': raise error_proto(resp) return resp