mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix IMAP.login() to work properly.
Also, add remote tests for imaplib (part of #4471).
This commit is contained in:
parent
adffced3df
commit
b1436f185d
3 changed files with 48 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue