Skip to content

Move simple writing code to utils - #370

Merged
gerrod3 merged 1 commit into
pulp:masterfrom
gerrod3:pub_utils_refactor
May 13, 2021
Merged

Move simple writing code to utils#370
gerrod3 merged 1 commit into
pulp:masterfrom
gerrod3:pub_utils_refactor

Conversation

@gerrod3

@gerrod3 gerrod3 commented May 13, 2021

Copy link
Copy Markdown
Contributor

[noissue]

Lots of changes in #367, moving some of them out into separate PRs to make it easier to review.

@gerrod3
gerrod3 force-pushed the pub_utils_refactor branch 6 times, most recently from d9f0495 to 3b24f4e Compare May 13, 2021 17:53
Comment thread pulp_python/app/utils.py Outdated
def write_simple_index(project_names, streamed=False):
"""Writes the simple index."""
simple = Template(simple_index_template)
context = {"projects": map(lambda x: (x, canonicalize_name(x)), project_names)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would rather use a list comprehension

context = {"projects": [canonicalize_name(x) for x in project_names]}

@gerrod3
gerrod3 force-pushed the pub_utils_refactor branch from 3b24f4e to c7b34ae Compare May 13, 2021 20:19
@gerrod3
gerrod3 force-pushed the pub_utils_refactor branch from c7b34ae to a2209ab Compare May 13, 2021 20:32
@gerrod3
gerrod3 merged commit 594ce75 into pulp:master May 13, 2021
@gerrod3
gerrod3 deleted the pub_utils_refactor branch May 13, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants