Issue #23681: Fixed Python 2 to 3 poring bugs.

Indexing bytes retiurns an integer, not bytes.
This commit is contained in:
Serhiy Storchaka 2015-03-20 16:48:02 +02:00
commit ee4c0b9dcf
6 changed files with 13 additions and 15 deletions

View file

@ -154,7 +154,7 @@ class SMTPChannel(asynchat.async_chat):
else:
self._emptystring = b''
self._linesep = b'\r\n'
self._dotsep = b'.'
self._dotsep = ord(b'.')
self._newline = b'\n'
self._set_rset_state()
self.seen_greeting = ''