Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbclient/__init__.py: 60%
10 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-01 06:54 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-01 06:54 +0000
1import subprocess
2import sys
4from ._version import __version__, version_info # noqa # noqa
5from .client import NotebookClient, execute # noqa: F401
8def _cleanup() -> None:
9 pass
12# patch subprocess on Windows for python<3.7
13# see https://bugs.python.org/issue37380
14# the fix for python3.7: https://github.com/python/cpython/pull/15706/files
15if sys.platform == 'win32':
16 if sys.version_info < (3, 7):
17 subprocess._cleanup = _cleanup
18 subprocess._active = None