diff -r 08b8b56bd2e8 -r b45a9d121b53 mercurial/mail.py --- a/mercurial/mail.py Wed Nov 29 08:46:37 2017 +0530 +++ b/mercurial/mail.py Wed Nov 29 08:44:06 2017 +0530 @@ -152,7 +152,7 @@ fp = open(mbox, 'ab+') # Should be time.asctime(), but Windows prints 2-characters day # of month instead of one. Make them print the same thing. - date = time.strftime('%a %b %d %H:%M:%S %Y', time.localtime()) + date = time.strftime(r'%a %b %d %H:%M:%S %Y', time.localtime()) fp.write('From %s %s\n' % (sender, date)) fp.write(msg) fp.write('\n\n')