Merged revisions 86380 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86380 | antoine.pitrou | 2010-11-09 23:55:55 +0100 (mar., 09 nov. 2010) | 4 lines
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):