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/DocutilsTestSupport.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/DocutilsTestSupport.py')
| -rw-r--r-- | docutils/test/DocutilsTestSupport.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py index b26fc44d8..eb9b8fa39 100644 --- a/docutils/test/DocutilsTestSupport.py +++ b/docutils/test/DocutilsTestSupport.py @@ -89,6 +89,10 @@ except: import pdb +if sys.version_info >= (3, 0): + unicode = str # noqa + + # Hack to make repr(StringList) look like repr(list): StringList.__repr__ = StringList.__str__ |
