diff options
author | Guido van Rossum <guido@python.org> | 2000-05-09 10:56:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-09 10:56:00 (GMT) |
commit | 2a91cd463ae63ab1e716159d3dac2b8ee923c4c7 (patch) | |
tree | a23bf06b1f27454e5d8069fb653b542a1c93c32d /Lib | |
parent | 9cef99fbf984ee81f3a95fbab17095edf488082b (diff) | |
download | cpython-2a91cd463ae63ab1e716159d3dac2b8ee923c4c7.zip cpython-2a91cd463ae63ab1e716159d3dac2b8ee923c4c7.tar.gz cpython-2a91cd463ae63ab1e716159d3dac2b8ee923c4c7.tar.bz2 |
Caolan McNamara: properly undo the byte-stuffing of lines starting
with a dot. [GvR change: only unstuff when line starts with two dots.]
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/poplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py index 118811c..97a9b0d 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py @@ -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() |