forked from Mirror/pmbootstrap
pmb: Remove unnecessary pass statements (MR 2537)
See https://docs.astral.sh/ruff/rules/unnecessary-placeholder
This commit is contained in:
parent
59227a333e
commit
6415aea8af
3 changed files with 0 additions and 6 deletions
|
@ -206,7 +206,6 @@ def _init(pkgname: str, arch: Arch | None) -> tuple[str, Arch, Any, Chroot, Env]
|
||||||
def migrate_config(pkgname: str, arch: Arch | None) -> None:
|
def migrate_config(pkgname: str, arch: Arch | None) -> None:
|
||||||
pkgname, arch, apkbuild, chroot, env = _init(pkgname, arch)
|
pkgname, arch, apkbuild, chroot, env = _init(pkgname, arch)
|
||||||
_make(chroot, "oldconfig", env, pkgname, arch, apkbuild)
|
_make(chroot, "oldconfig", env, pkgname, arch, apkbuild)
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def edit_config(pkgname: str, arch: Arch | None, config_ui: KConfigUI) -> None:
|
def edit_config(pkgname: str, arch: Arch | None, config_ui: KConfigUI) -> None:
|
||||||
|
|
|
@ -7,12 +7,8 @@ class BuildFailedError(Exception):
|
||||||
separately from NonBugError as it needs to be treated differently as we want to hint
|
separately from NonBugError as it needs to be treated differently as we want to hint
|
||||||
to users that they can check the log for more information when a build fails."""
|
to users that they can check the log for more information when a build fails."""
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class NonBugError(Exception):
|
class NonBugError(Exception):
|
||||||
"""Exception which originates from a problem not caused by pmbootstrap's code. This
|
"""Exception which originates from a problem not caused by pmbootstrap's code. This
|
||||||
could for example be raised if there is an error in a package pmbootstrap is
|
could for example be raised if there is an error in a package pmbootstrap is
|
||||||
interacting with in some way."""
|
interacting with in some way."""
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ def mount(img_path: Path, _sector_size: int | None = None) -> Path:
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
if i == 4:
|
if i == 4:
|
||||||
raise e
|
raise e
|
||||||
pass
|
|
||||||
|
|
||||||
raise AssertionError("This should never be reached")
|
raise AssertionError("This should never be reached")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue