Skip to content

Commit a46f5a7

Browse files
Samuel FORESTIERHorlogeSkynet
authored andcommitted
Removes now unnecessary include_*=False keywords arguments
Explicitly disabling third-programs data sources is not required since paths are now resolved relatively to `root_dir`.
1 parent 1cdfc44 commit a46f5a7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/distro/distro.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,12 +1478,7 @@ def main() -> None:
14781478
args = parser.parse_args()
14791479

14801480
if args.root_dir:
1481-
dist = LinuxDistribution(
1482-
include_lsb=False,
1483-
include_uname=False,
1484-
include_oslevel=False,
1485-
root_dir=args.root_dir,
1486-
)
1481+
dist = LinuxDistribution(root_dir=args.root_dir)
14871482
else:
14881483
dist = _distro
14891484

tests/test_distro.py

Lines changed: 0 additions & 3 deletions
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)