]> granicus.if.org Git - python/commitdiff
fix for Bug ID 448100 - "test code using NL instead of CRNL"
authorPiers Lauder <piers@cs.su.oz.au>
Sun, 5 Aug 2001 10:43:03 +0000 (10:43 +0000)
committerPiers Lauder <piers@cs.su.oz.au>
Sun, 5 Aug 2001 10:43:03 +0000 (10:43 +0000)
Lib/imaplib.py

index f7b08a67bccc92a570c9eef3ea031127da83fcda..7c28d037804d6721882ae5754a832d31293798ea 100644 (file)
@@ -1136,7 +1136,7 @@ if __name__ == '__main__':
     USER = getpass.getuser()
     PASSWD = getpass.getpass("IMAP password for %s on %s: " % (USER, host or "localhost"))
 
-    test_mesg = 'From: %s@localhost\nSubject: IMAP4 test\n\ndata...\n' % USER
+    test_mesg = 'From: %(user)s@localhost%(lf)sSubject: IMAP4 test%(lf)s%(lf)sdata...%(lf)s' % {'user':USER, 'lf':CRLF}
     test_seq1 = (
     ('login', (USER, PASSWD)),
     ('create', ('/tmp/xxx 1',)),