Mercurial > public > mercurial-scm > hg
comparison tests/svnxml.py @ 28947:812eb3b7dc43
py3: use absolute_import in svnxml.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 06:03:11 +0300 |
parents | c58bdecdb800 |
children | c17d73bf6a4d |
comparison
equal
deleted
inserted
replaced
28946:b12bda49c3e3 | 28947:812eb3b7dc43 |
---|---|
1 # Read the output of a "svn log --xml" command on stdin, parse it and | 1 # Read the output of a "svn log --xml" command on stdin, parse it and |
2 # print a subset of attributes common to all svn versions tested by | 2 # print a subset of attributes common to all svn versions tested by |
3 # hg. | 3 # hg. |
4 import xml.dom.minidom, sys | 4 from __future__ import absolute_import |
5 import sys | |
6 import xml.dom.minidom | |
5 | 7 |
6 def xmltext(e): | 8 def xmltext(e): |
7 return ''.join(c.data for c | 9 return ''.join(c.data for c |
8 in e.childNodes | 10 in e.childNodes |
9 if c.nodeType == c.TEXT_NODE) | 11 if c.nodeType == c.TEXT_NODE) |