Skip to content

Commit 211dc76

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 d9ae439 commit 211dc76

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/distro/distro.py

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

14671467
if args.root_dir:
1468-
dist = LinuxDistribution(
1469-
include_lsb=False,
1470-
include_uname=False,
1471-
include_oslevel=False,
1472-
root_dir=args.root_dir,
1473-
)
1468+
dist = LinuxDistribution(root_dir=args.root_dir)
14741469
else:
14751470
dist = _distro
14761471

tests/test_distro.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ class TestOSRelease:
139139
def setup_method(self, test_method: FunctionType) -> None:
140140
dist = test_method.__name__.split("_")[1]
141141
self.distro = distro.LinuxDistribution(
142-
include_lsb=False,
143142
distro_release_file="path-to-non-existing-file",
144143
root_dir=os.path.join(DISTROS_DIR, dist),
145144
)
@@ -559,9 +558,6 @@ def setup_method(self, test_method: FunctionType) -> None:
559558
dist = test_method.__name__.split("_")[1]
560559
root_dir = os.path.join(DISTROS_DIR, dist)
561560
self.distro = distro.LinuxDistribution(
562-
include_lsb=False,
563-
include_uname=False,
564-
include_oslevel=False,
565561
os_release_file="",
566562
distro_release_file="path-to-non-existing-file",
567563
root_dir=root_dir,

0 commit comments

Comments
 (0)