diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:11:32 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:11:32 +0000 |
| commit | b7b360f03d05dbf0e7a69407db982f8d8772e724 (patch) | |
| tree | 24045f0bddd87c3a528a2201ccbcf6f4adf620f0 /docutils/test/test_error_reporting.py | |
| parent | 44691d6bbdbafdec4f206564b45997ec54b57732 (diff) | |
| download | docutils-b7b360f03d05dbf0e7a69407db982f8d8772e724.tar.gz | |
py3: Switch to print functions
Remove all uses of print as a statement. This includes comments, many of
which are simply removed as noise (they're in version control and can be
re-added later, if necessary).
Signed-off-by: Stephen Finucane <stephen@that.guru>
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8346 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_error_reporting.py')
| -rw-r--r-- | docutils/test/test_error_reporting.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docutils/test/test_error_reporting.py b/docutils/test/test_error_reporting.py index d62e6dbad..7239c44f7 100644 --- a/docutils/test/test_error_reporting.py +++ b/docutils/test/test_error_reporting.py @@ -20,13 +20,15 @@ instances like, e.g., :: try: something except IOError, error: - print 'Found %s' % error + print('Found %s' % error) unless the minimal required Python version has this problem fixed. """ +from __future__ import print_function import unittest -import sys, os +import os +import sys from io import StringIO, BytesIO import DocutilsTestSupport # must be imported before docutils @@ -39,8 +41,8 @@ if sys.version_info < (3, 0): # problems solved in py3k import locale # module missing in Jython oldlocale = locale.getlocale() except ImportError: - print ('cannot test error reporting with problematic locales,\n' - '`import locale` failed.') + print('cannot test error reporting with problematic locales,\n' + '`import locale` failed.') # locales confirmed to use non-ASCII chars in the IOError message |
