##// END OF EJS Templates
py3: use mail.parsebytes() in gnuarch catlog parser...
Denis Laxalde -
r43699:cf3bf3b0 stable
parent child Browse files
Show More
@@ -7,7 +7,6 b''
7 7 # GNU General Public License version 2 or any later version.
8 8 from __future__ import absolute_import
9 9
10 import email.parser as emailparser
11 10 import os
12 11 import shutil
13 12 import stat
@@ -17,6 +16,7 b' from mercurial.i18n import _'
17 16 from mercurial import (
18 17 encoding,
19 18 error,
19 mail,
20 20 pycompat,
21 21 util,
22 22 )
@@ -69,7 +69,6 b' class gnuarch_source(common.converter_so'
69 69 self.changes = {}
70 70 self.parents = {}
71 71 self.tags = {}
72 self.catlogparser = emailparser.Parser()
73 72 self.encoding = encoding.encoding
74 73 self.archives = []
75 74
@@ -299,7 +298,7 b' class gnuarch_source(common.converter_so'
299 298
300 299 def _parsecatlog(self, data, rev):
301 300 try:
302 catlog = self.catlogparser.parsestr(data)
301 catlog = mail.parsebytes(data)
303 302
304 303 # Commit date
305 304 self.changes[rev].date = dateutil.datestr(
General Comments 0
You need to be logged in to leave comments. Login now