diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:12:32 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-26 12:12:32 +0000 |
| commit | d0cbc06ea65c895e43d9c37da6817bbd3fd8a164 (patch) | |
| tree | 39561c6238ffc76b3831a0e995cf4fbd84d5d023 /docutils/test/test_error_reporting.py | |
| parent | 295c5bfcada570eed9a44a2a312ad80a84262c55 (diff) | |
| download | docutils-d0cbc06ea65c895e43d9c37da6817bbd3fd8a164.tar.gz | |
py3: Add aliases for removed symbols
Add aliases for symbols that have been removed in Python 3.x, namely
basestring, unicode, unichr and StandardError.
Signed-off-by: Stephen Finucane <stephen@that.guru>
small fixes by Günter Milde.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8348 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_error_reporting.py')
| -rw-r--r-- | docutils/test/test_error_reporting.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docutils/test/test_error_reporting.py b/docutils/test/test_error_reporting.py index 400e40ad7..41dbfc5df 100644 --- a/docutils/test/test_error_reporting.py +++ b/docutils/test/test_error_reporting.py @@ -44,6 +44,9 @@ if sys.version_info < (3, 0): # problems solved in py3k print('cannot test error reporting with problematic locales,\n' '`import locale` failed.') +if sys.version_info >= (3, 0): + unicode = str # noqa + # locales confirmed to use non-ASCII chars in the IOError message # for a missing file (https://bugs.gentoo.org/show_bug.cgi?id=349101) |
