Mercurial > hg
changeset 49867:668fb0dcb179
convert: stop passing str to the dateutil API in darcs
I'm sure there's a bunch more stuff in here that's broken, but this was flagged
by pytype.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 06 Jan 2023 12:16:04 -0500 |
parents | 2ac60a71c240 |
children | a8893ec94a08 |
files | hgext/convert/darcs.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/darcs.py Fri Jan 06 10:56:53 2023 -0500 +++ b/hgext/convert/darcs.py Fri Jan 06 12:16:04 2023 -0500 @@ -143,7 +143,7 @@ def getcommit(self, rev): elt = self.changes[rev] dateformat = b'%a %b %d %H:%M:%S %Z %Y' - date = dateutil.strdate(elt.get('local_date'), dateformat) + date = dateutil.strdate(self.recode(elt.get('local_date')), dateformat) desc = elt.findtext('name') + '\n' + elt.findtext('comment', '') # etree can return unicode objects for name, comment, and author, # so recode() is used to ensure str objects are emitted.