From b1436f185dac249f0f6dc342b2a543ae2d1db63d Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 9 Nov 2010 22:55:55 +0000 Subject: Fix IMAP.login() to work properly. Also, add remote tests for imaplib (part of #4471). --- Lib/imaplib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/imaplib.py') diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 9b0fd3b98f..1b375465af 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): -- cgit v1.2.1