mercurial/subrepo.py
changeset 36719 390d16ea7c76
parent 36690 b529e640015d
child 36939 45bfcd16f27e
--- a/mercurial/subrepo.py	Sun Mar 04 07:40:21 2018 -0800
+++ b/mercurial/subrepo.py	Sun Mar 04 22:33:59 2018 +0530
@@ -1123,7 +1123,7 @@
         doc = xml.dom.minidom.parseString(output)
         paths = []
         for e in doc.getElementsByTagName('entry'):
-            kind = str(e.getAttribute('kind'))
+            kind = pycompat.bytestr(e.getAttribute('kind'))
             if kind != 'file':
                 continue
             name = ''.join(c.data for c