commit | b1436f185dac249f0f6dc342b2a543ae2d1db63d | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 09 22:55:55 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 09 22:55:55 2010 +0000 |
tree | 67f462da54568f4bb48c573eb2a1d26e7c9f826b | |
parent | adffced3df2368a20a6f122f301886be4430a538 [diff] [blame] |
Fix IMAP.login() to work properly. Also, add remote tests for imaplib (part of #4471).
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 @@ 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):