Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(34337)

Unified Diff: Lib/poplib.py

Issue 21804: Implement thr UTF8 command (RFC 6856) in poplib.
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/poplib.rst ('k') | Lib/test/test_poplib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/poplib.py Mon Jun 16 19:26:56 2014 -0400
+++ b/Lib/poplib.py Wed Jul 02 03:23:54 2014 +0200
@@ -71,6 +71,7 @@
UIDL [msg] uidl(msg = None)
CAPA capa()
STLS stls()
+ UTF8 utf8()
Raises one exception: 'error_proto'.
@@ -343,6 +344,12 @@
return self._longcmd('UIDL')
+ def utf8(self):
+ """Try to enter UTF-8 mode (see RFC 6856). Returns server response.
+ """
+ return self._shortcmd('UTF8')
+
+
def capa(self):
"""Return server capabilities (RFC 2449) as a dictionary
>>> c=poplib.POP3('localhost')
« no previous file with comments | « Doc/library/poplib.rst ('k') | Lib/test/test_poplib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+