mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+1
-1
@@ -4,7 +4,7 @@ import os
|
||||
from ._core import ShellDetectionFailure
|
||||
|
||||
|
||||
__version__ = "1.4.0"
|
||||
__version__ = "1.5.0"
|
||||
|
||||
|
||||
def detect_shell(pid=None, max_depth=10):
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ SHELL_NAMES = (
|
||||
| {"csh", "tcsh"} # C.
|
||||
| {"ksh", "zsh", "fish"} # Common alternatives.
|
||||
| {"cmd", "powershell", "pwsh"} # Microsoft.
|
||||
| {"elvish", "xonsh"} # More exotic.
|
||||
| {"elvish", "xonsh", "nu"} # More exotic.
|
||||
)
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ def _iter_process_args(mapping, pid, max_depth):
|
||||
proc = mapping[pid]
|
||||
except KeyError: # We've reached the root process. Give up.
|
||||
break
|
||||
if proc.args: # Persumably the process should always have a name?
|
||||
if proc.args: # Presumably the process should always have a name?
|
||||
yield proc.args
|
||||
pid = proc.ppid # Go up one level.
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ def detect_proc():
|
||||
"""Detect /proc filesystem style.
|
||||
|
||||
This checks the /proc/{pid} directory for possible formats. Returns one of
|
||||
the followings as str:
|
||||
the following as str:
|
||||
|
||||
* `stat`: Linux-style, i.e. ``/proc/{pid}/stat``.
|
||||
* `status`: BSD-style, i.e. ``/proc/{pid}/status``.
|
||||
|
||||
Vendored
+1
-1
@@ -19,7 +19,7 @@ pyparsing==3.0.9
|
||||
python-dotenv==0.19.0
|
||||
pythonfinder==1.3.1
|
||||
requirementslib==2.0.1
|
||||
shellingham==1.4.0
|
||||
shellingham==1.5.0
|
||||
six==1.16.0
|
||||
termcolor==1.1.0
|
||||
toml==0.10.2
|
||||
|
||||
Reference in New Issue
Block a user