forked from Mirror/pmbootstrap
pmb.chroot: Rename exists() to user_exists() (MR 2545)
This name is what's used at the one call site the codebase currently has, and it means we can have an explicit re-export which Ruff won't complain about.
This commit is contained in:
parent
bdcc188f05
commit
ebc5ab9ecd
2 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ def user(
|
|||
return userm([cmd], chroot, working_dir, output, output_return, check, env)
|
||||
|
||||
|
||||
def exists(username: str, chroot: Chroot = Chroot.native()) -> bool:
|
||||
def user_exists(username: str, chroot: Chroot = Chroot.native()) -> bool:
|
||||
"""
|
||||
Checks if username exists in the system
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue