diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2014-01-20 18:32:47 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2014-01-20 18:32:47 +0400 |
commit | c2eaf2af81c1c0bce89ce8e4e43d853ac768c8f3 (patch) | |
tree | bb18c53d431f98cb3a33df663efe9093af0775ea /tests/test_intl.py | |
parent | 8115aa81a2972a5cc20b8d7c244c52e792ecad98 (diff) | |
parent | ce2185ce279664e54ba22b14663091abc5a3a8f2 (diff) | |
download | sphinx-git-c2eaf2af81c1c0bce89ce8e4e43d853ac768c8f3.tar.gz |
Merge
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r-- | tests/test_intl.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py index 0119d677f..f59e3c861 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -9,6 +9,7 @@ :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ +from __future__ import print_function import os import re @@ -58,8 +59,8 @@ def setup_module(): else: stdout, stderr = p.communicate() if p.returncode != 0: - print stdout - print stderr + print(stdout) + print(stderr) assert False, \ 'msgfmt exited with return code %s' % p.returncode assert mo.isfile(), 'msgfmt failed' @@ -84,7 +85,7 @@ def elem_gettexts(elem): yield s if e.tail: yield e.tail - return filter(None, [s.strip() for s in itertext(elem)]) + return [_f for _f in [s.strip() for s in itertext(elem)] if _f] def elem_getref(elem): |