##// END OF EJS Templates
py3: make sure the first argument of time.strftime() is str...
Pulkit Goyal -
r35152:b45a9d12 default
parent child Browse files
Show More
@@ -580,7 +580,7 b' class bzmysql(bzaccess):'
580 self.ui.warn(_("Bugzilla/MySQL cannot update bug state\n"))
580 self.ui.warn(_("Bugzilla/MySQL cannot update bug state\n"))
581
581
582 (user, userid) = self.get_bugzilla_user(committer)
582 (user, userid) = self.get_bugzilla_user(committer)
583 now = time.strftime('%Y-%m-%d %H:%M:%S')
583 now = time.strftime(r'%Y-%m-%d %H:%M:%S')
584 self.run('''insert into longdescs
584 self.run('''insert into longdescs
585 (bug_id, who, bug_when, thetext)
585 (bug_id, who, bug_when, thetext)
586 values (%s, %s, %s, %s)''',
586 values (%s, %s, %s, %s)''',
@@ -719,7 +719,7 b' def debugstate(ui, repo, **opts):'
719 elif nodates:
719 elif nodates:
720 timestr = 'set '
720 timestr = 'set '
721 else:
721 else:
722 timestr = time.strftime("%Y-%m-%d %H:%M:%S ",
722 timestr = time.strftime(r"%Y-%m-%d %H:%M:%S ",
723 time.localtime(ent[3]))
723 time.localtime(ent[3]))
724 if ent[1] & 0o20000:
724 if ent[1] & 0o20000:
725 mode = 'lnk'
725 mode = 'lnk'
@@ -152,7 +152,7 b' def _mbox(mbox, sender, recipients, msg)'
152 fp = open(mbox, 'ab+')
152 fp = open(mbox, 'ab+')
153 # Should be time.asctime(), but Windows prints 2-characters day
153 # Should be time.asctime(), but Windows prints 2-characters day
154 # of month instead of one. Make them print the same thing.
154 # of month instead of one. Make them print the same thing.
155 date = time.strftime('%a %b %d %H:%M:%S %Y', time.localtime())
155 date = time.strftime(r'%a %b %d %H:%M:%S %Y', time.localtime())
156 fp.write('From %s %s\n' % (sender, date))
156 fp.write('From %s %s\n' % (sender, date))
157 fp.write(msg)
157 fp.write(msg)
158 fp.write('\n\n')
158 fp.write('\n\n')
General Comments 0
You need to be logged in to leave comments. Login now