Project

Profile

Help

Issue #1442

closed

Make RepoURLModifier more IDE-friendly

Added by semyers over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Low
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

(and also more developer-friendly)

Currently, in pulp_rpm[0], the RepoURLModifier stashes the passed-in args in a dict as the conf instance attr. This is an artifact from earlier incarnations of that class, and serves no practical purpose. Instead of adding those to a dict, they should be normal instance attributes.

The conf dict keys are used for validation in __call__, but I think it's probably reasonable to get rid of the **kwargs usage in that method to support more IDE- and developer-friendliness; it looks less DRY, but ends up being more explicit and readable, which is probably an overall win.

[0]: https://github.com/pulp/pulp_rpm/blob/0d3a483c905e9c54ebd1ff01ad814fa38f8fb6bb/plugins/pulp_rpm/plugins/importers/yum/utils.py#L105

Also available in: Atom PDF