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 | 2d5fa36e34290907e980adef59131bb0dacfb594 (patch) | |
| tree | dffbe97be18327f7bcaec034f420c3ca7fac414d /test/test__init__.py | |
| parent | 9679804d7f8a07ccf2151722c35b696dc64c4595 (diff) | |
| download | docutils-2d5fa36e34290907e980adef59131bb0dacfb594.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: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8348 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test__init__.py')
| -rw-r--r-- | test/test__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test__init__.py b/test/test__init__.py index f23c1f201..c66f97a02 100644 --- a/test/test__init__.py +++ b/test/test__init__.py @@ -16,6 +16,10 @@ import docutils import docutils.utils +if sys.version_info >= (3, 0): + unicode = str # noqa + + class ApplicationErrorTests(unittest.TestCase): def test_message(self): |
