From af1c8addfefd430492052faeb11b49c5b945b4c5 Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sat, 20 Apr 2024 17:32:38 +0200 Subject: [PATCH] Removes now unnecessary `include_*=False` keywords arguments Explicitly disabling third-programs data sources is not required since 2a89f76c (disabled by default if `root_dir` is set). --- src/distro/distro.py | 7 +------ tests/test_distro.py | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/distro/distro.py b/src/distro/distro.py index 9cba370..f12cac1 100755 --- a/src/distro/distro.py +++ b/src/distro/distro.py @@ -1486,12 +1486,7 @@ def main() -> None: args = parser.parse_args() if args.root_dir: - dist = LinuxDistribution( - include_lsb=False, - include_uname=False, - include_oslevel=False, - root_dir=args.root_dir, - ) + dist = LinuxDistribution(root_dir=args.root_dir) else: dist = _distro diff --git a/tests/test_distro.py b/tests/test_distro.py index b38cc40..4719618 100644 --- a/tests/test_distro.py +++ b/tests/test_distro.py @@ -559,9 +559,6 @@ def setup_method(self, test_method: FunctionType) -> None: dist = test_method.__name__.split("_")[1] root_dir = os.path.join(DISTROS_DIR, dist) self.distro = distro.LinuxDistribution( - include_lsb=False, - include_uname=False, - include_oslevel=False, os_release_file="", distro_release_file="path-to-non-existing-file", root_dir=root_dir,