Mercurial > public > mercurial-scm > hg-stable
diff hgext/bugzilla.py @ 35172:b45a9d121b53
py3: make sure the first argument of time.strftime() is str
time.strftime() does not accepts bytes as its first argument on py3.
Differential Revision: https://phab.mercurial-scm.org/D1559
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 29 Nov 2017 08:44:06 +0530 |
parents | ee9243715c59 |
children | c8e2d6ed1f9e |
line wrap: on
line diff
--- a/hgext/bugzilla.py Wed Nov 29 08:46:37 2017 +0530 +++ b/hgext/bugzilla.py Wed Nov 29 08:44:06 2017 +0530 @@ -580,7 +580,7 @@ self.ui.warn(_("Bugzilla/MySQL cannot update bug state\n")) (user, userid) = self.get_bugzilla_user(committer) - now = time.strftime('%Y-%m-%d %H:%M:%S') + now = time.strftime(r'%Y-%m-%d %H:%M:%S') self.run('''insert into longdescs (bug_id, who, bug_when, thetext) values (%s, %s, %s, %s)''',