diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-08-06 16:06:25 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-08-06 16:06:25 (GMT) |
commit | ea1158f9f33fe5a673cd8e128fcc85c26b45ea67 (patch) | |
tree | 998c07968f8fd5c16d9f71c52f6a4bb64e2e4bb9 /Lib/poplib.py | |
parent | ba5c74329dadfb685bb921407916ffbb2efb78cc (diff) | |
download | cpython-ea1158f9f33fe5a673cd8e128fcc85c26b45ea67.zip cpython-ea1158f9f33fe5a673cd8e128fcc85c26b45ea67.tar.gz cpython-ea1158f9f33fe5a673cd8e128fcc85c26b45ea67.tar.bz2 |
Issue #6622: Fix 'variable referenced before assignment' bug in POP3.apop.
Thanks Vincent Legoll.
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r-- | Lib/poplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py index 770819e..1a529d0 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py @@ -282,7 +282,7 @@ class POP3: NB: mailbox is locked by server from here to 'quit()' """ - secret = bytes(secret, self.encoding) + secret = bytes(password, self.encoding) m = self.timestamp.match(self.welcome) if not m: raise error_proto('-ERR APOP not supported by server') |