diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-03 23:50:05 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-03 23:50:05 +0000 |
| commit | d5c617a6b221b32b1525986aacab200ebf6ef02b (patch) | |
| tree | dc85654f33501bd5544cc6fe6ad6f2f0a3177ca1 /docutils/tools/dev/create_unimap.py | |
| parent | 8e3d09b811838f7e2f025160e7fa190020ddc0b0 (diff) | |
| download | docutils-d5c617a6b221b32b1525986aacab200ebf6ef02b.tar.gz | |
Drop special-casing for Python 2.x in tests and tools.
Use "python3" in the shebang line
(cf. PEP 394 -- The "python" Command on Unix-Like Systems).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8927 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools/dev/create_unimap.py')
| -rwxr-xr-x | docutils/tools/dev/create_unimap.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/docutils/tools/dev/create_unimap.py b/docutils/tools/dev/create_unimap.py index eba354208..9bc7fa595 100755 --- a/docutils/tools/dev/create_unimap.py +++ b/docutils/tools/dev/create_unimap.py @@ -13,17 +13,6 @@ from xml.dom import minidom import sys import pprint -if sys.version_info >= (3, 0): - unicode = str #noqa -else: - bytes = str # noqa - chr = unichr # noqa - - -def w(s): - if sys.version_info >= (3, 0) and isinstance(s, unicode): - s = s.encode('utf8') - sys.stdout.write(s) text_map = {} math_map = {} |
