From e84602b8f2b95d10d45eb11369ae7d627339c881 Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Tue, 12 Mar 2024 17:24:47 +0300 Subject: Intermediate changes --- .../py3/IPython/utils/_process_emscripten.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/python/ipython/py3/IPython/utils/_process_emscripten.py (limited to 'contrib/python/ipython/py3/IPython/utils/_process_emscripten.py') diff --git a/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py b/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py new file mode 100644 index 00000000000..05dcdc34d5f --- /dev/null +++ b/contrib/python/ipython/py3/IPython/utils/_process_emscripten.py @@ -0,0 +1,23 @@ +"""Emscripten-specific implementation of process utilities. + +This file is only meant to be imported by process.py, not by end-users. +""" + + +from ._process_common import arg_split + + +def system(cmd): + raise OSError("Not available") + + +def getoutput(cmd): + raise OSError("Not available") + + +def check_pid(cmd): + raise OSError("Not available") + + +# `arg_split` is still used by magics regardless of whether we are on a posix/windows/emscipten +__all__ = ["system", "getoutput", "check_pid", "arg_split"] -- cgit v1.3