Skip to content

Commit fdc669e

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 bab1b9a commit fdc669e

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
@@ -1372,12 +1372,7 @@ def main() -> None:
13721372
args = parser.parse_args()
13731373

13741374
if args.root_dir:
1375-
dist = LinuxDistribution(
1376-
include_lsb=False,
1377-
include_uname=False,
1378-
include_oslevel=False,
1379-
root_dir=args.root_dir,
1380-
)
1375+
dist = LinuxDistribution(root_dir=args.root_dir)
13811376
else:
13821377
dist = _distro
13831378

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)