mercurial/mail.py
changeset 35172 b45a9d121b53
parent 34317 2d0c306a88c2
child 36085 1407c42b302c
--- 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')