Skip to content
Snippets Groups Projects
Commit cf3bf3b0 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

py3: use mail.parsebytes() in gnuarch catlog parser

We drop 'catlogparser' attribute now unused.
parent 9a43cef9
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import email.parser as emailparser
import os
import shutil
import stat
......@@ -17,6 +16,7 @@
from mercurial import (
encoding,
error,
mail,
pycompat,
util,
)
......@@ -69,7 +69,6 @@
self.changes = {}
self.parents = {}
self.tags = {}
self.catlogparser = emailparser.Parser()
self.encoding = encoding.encoding
self.archives = []
......@@ -299,7 +298,7 @@
def _parsecatlog(self, data, rev):
try:
catlog = self.catlogparser.parsestr(data)
catlog = mail.parsebytes(data)
# Commit date
self.changes[rev].date = dateutil.datestr(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment