xmyshell 0.2.9__tar.gz → 0.2.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xmyshell-0.2.9/xmyshell.egg-info → xmyshell-0.2.10}/PKG-INFO +1 -1
- {xmyshell-0.2.9 → xmyshell-0.2.10}/pyproject.toml +1 -1
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/kernel.py +6 -1
- {xmyshell-0.2.9 → xmyshell-0.2.10/xmyshell.egg-info}/PKG-INFO +1 -1
- {xmyshell-0.2.9 → xmyshell-0.2.10}/LICENSE +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/README.md +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/setup.cfg +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/__init__.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/__main__.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/completer.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/data/commands.json +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/environment.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/init.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/keybindings.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/lexer.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/main.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/meta.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/themes.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/update.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell/utils.py +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/SOURCES.txt +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/dependency_links.txt +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/entry_points.txt +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/requires.txt +0 -0
- {xmyshell-0.2.9 → xmyshell-0.2.10}/xmyshell.egg-info/top_level.txt +0 -0
|
@@ -26,9 +26,14 @@ def _run(*args, **kwargs) -> subprocess.CompletedProcess:
|
|
|
26
26
|
# KeyboardInterrupt handler only fires for Ctrl-C at the prompt.
|
|
27
27
|
#
|
|
28
28
|
# Must run on the main thread: signal.signal() is not allowed elsewhere.
|
|
29
|
+
kwargs_preexec = {}
|
|
30
|
+
if os.name == "posix":
|
|
31
|
+
def _reset_sigint():
|
|
32
|
+
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
|
33
|
+
kwargs_preexec["preexec_fn"] = _reset_sigint
|
|
29
34
|
old = signal.signal(signal.SIGINT, signal.SIG_IGN)
|
|
30
35
|
try:
|
|
31
|
-
return subprocess.run(*args, **kwargs)
|
|
36
|
+
return subprocess.run(*args, **kwargs_preexec, **kwargs)
|
|
32
37
|
finally:
|
|
33
38
|
signal.signal(signal.SIGINT, old)
|
|
34
39
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|