mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
This commit is contained in:
parent
77e77a1273
commit
ed11a5d018
14 changed files with 63 additions and 9 deletions
|
@ -10,7 +10,13 @@ import subprocess
|
|||
import py_compile
|
||||
import contextlib
|
||||
import shutil
|
||||
import zipfile
|
||||
try:
|
||||
import zipfile
|
||||
except ImportError:
|
||||
# If Python is build without Unicode support, importing _io will
|
||||
# fail, which, in turn, means that zipfile cannot be imported
|
||||
# Most of this module can then still be used.
|
||||
pass
|
||||
|
||||
from test.test_support import strip_python_stderr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue