You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
480 B
18 lines
480 B
4 years ago
|
import sys
|
||
|
import subprocess
|
||
|
from .client import NotebookClient, execute # noqa: F401
|
||
|
from ._version import version as __version__ # noqa: F401
|
||
|
|
||
|
|
||
|
def _cleanup() -> None:
|
||
|
pass
|
||
|
|
||
|
|
||
|
# patch subprocess on Windows for python<3.7
|
||
|
# see https://bugs.python.org/issue37380
|
||
|
# the fix for python3.7: https://github.com/python/cpython/pull/15706/files
|
||
|
if sys.platform == 'win32':
|
||
|
if sys.version_info < (3, 7):
|
||
|
subprocess._cleanup = _cleanup
|
||
|
subprocess._active = None
|