Skip to content

Commit af1c8ad

Browse files
committed
Removes now unnecessary include_*=False keywords arguments
Explicitly disabling third-programs data sources is not required since 2a89f76 (disabled by default if `root_dir` is set).
1 parent 2c2e1a3 commit af1c8ad

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/distro/distro.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1486,12 +1486,7 @@ def main() -> None:
14861486
args = parser.parse_args()
14871487

14881488
if args.root_dir:
1489-
dist = LinuxDistribution(
1490-
include_lsb=False,
1491-
include_uname=False,
1492-
include_oslevel=False,
1493-
root_dir=args.root_dir,
1494-
)
1489+
dist = LinuxDistribution(root_dir=args.root_dir)
14951490
else:
14961491
dist = _distro
14971492

tests/test_distro.py

-3
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,6 @@ def setup_method(self, test_method: FunctionType) -> None:
559559
dist = test_method.__name__.split("_")[1]
560560
root_dir = os.path.join(DISTROS_DIR, dist)
561561
self.distro = distro.LinuxDistribution(
562-
include_lsb=False,
563-
include_uname=False,
564-
include_oslevel=False,
565562
os_release_file="",
566563
distro_release_file="path-to-non-existing-file",
567564
root_dir=root_dir,

0 commit comments

Comments
 (0)