Skip to content

Commit 65eda6f

Browse files
author
Samuel FORESTIER
committed
Removes now unnecessary include_*=False keywords arguments
Since 2a89f76, when `root_dir` is specified, explicitly disabling third-programs data sources is not required anymore.
1 parent 5d22880 commit 65eda6f

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/distro/distro.py

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

13631363
if args.root_dir:
1364-
dist = LinuxDistribution(
1365-
include_lsb=False,
1366-
include_uname=False,
1367-
include_oslevel=False,
1368-
root_dir=args.root_dir,
1369-
)
1364+
dist = LinuxDistribution(root_dir=args.root_dir)
13701365
else:
13711366
dist = _distro
13721367

tests/test_distro.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,6 @@ def setup_method(self, test_method: FunctionType) -> None:
489489
dist = test_method.__name__.split("_")[1]
490490
root_dir = os.path.join(DISTROS_DIR, dist)
491491
self.distro = distro.LinuxDistribution(
492-
include_lsb=False,
493-
include_uname=False,
494-
include_oslevel=False,
495492
os_release_file="",
496493
distro_release_file="path-to-non-existing-file",
497494
root_dir=root_dir,

0 commit comments

Comments
 (0)