diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-09 22:55:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-09 22:55:55 (GMT) |
commit | b1436f185dac249f0f6dc342b2a543ae2d1db63d (patch) | |
tree | 67f462da54568f4bb48c573eb2a1d26e7c9f826b /Lib/imaplib.py | |
parent | adffced3df2368a20a6f122f301886be4430a538 (diff) | |
download | cpython-b1436f185dac249f0f6dc342b2a543ae2d1db63d.zip cpython-b1436f185dac249f0f6dc342b2a543ae2d1db63d.tar.gz cpython-b1436f185dac249f0f6dc342b2a543ae2d1db63d.tar.bz2 |
Fix IMAP.login() to work properly.
Also, add remote tests for imaplib (part of #4471).
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 9b0fd3b..1b37546 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1054,10 +1054,10 @@ class IMAP4: def _quote(self, arg): - arg = arg.replace(b'\\', b'\\\\') - arg = arg.replace(b'"', b'\\"') + arg = arg.replace('\\', '\\\\') + arg = arg.replace('"', '\\"') - return b'"' + arg + b'"' + return '"' + arg + '"' def _simple_command(self, name, *args): |