commit | ea1158f9f33fe5a673cd8e128fcc85c26b45ea67 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Thu Aug 06 16:06:25 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Thu Aug 06 16:06:25 2009 +0000 |
tree | 998c07968f8fd5c16d9f71c52f6a4bb64e2e4bb9 | |
parent | ba5c74329dadfb685bb921407916ffbb2efb78cc [diff] [blame] |
Issue #6622: Fix 'variable referenced before assignment' bug in POP3.apop. Thanks Vincent Legoll.
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 @@ 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')