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