Caolan McNamara: properly undo the byte-stuffing of lines starting

with a dot.  [GvR change: only unstuff when line starts with two dots.]
This commit is contained in:
Guido van Rossum 2000-05-09 10:56:00 +00:00
parent 9cef99fbf9
commit 2a91cd463a
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ class POP3:
list = []; octets = 0
line, o = self._getline()
while line != '.':
if line[:2] == '..':
o = o-1
line = line[1:]
octets = octets + o
list.append(line)
line, o = self._getline()