Skip to content

Commit 8f5702c

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 7766e98 commit 8f5702c

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
@@ -1376,12 +1376,7 @@ def main() -> None:
13761376
args = parser.parse_args()
13771377

13781378
if args.root_dir:
1379-
dist = LinuxDistribution(
1380-
include_lsb=False,
1381-
include_uname=False,
1382-
include_oslevel=False,
1383-
root_dir=args.root_dir,
1384-
)
1379+
dist = LinuxDistribution(root_dir=args.root_dir)
13851380
else:
13861381
dist = _distro
13871382

tests/test_distro.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,6 @@ def setup_method(self, test_method: FunctionType) -> None:
519519
dist = test_method.__name__.split("_")[1]
520520
root_dir = os.path.join(DISTROS_DIR, dist)
521521
self.distro = distro.LinuxDistribution(
522-
include_lsb=False,
523-
include_uname=False,
524-
include_oslevel=False,
525522
os_release_file="",
526523
distro_release_file="path-to-non-existing-file",
527524
root_dir=root_dir,

0 commit comments

Comments
 (0)