Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyification #148

Merged
merged 5 commits into from
Nov 16, 2021
Merged

Pyification #148

merged 5 commits into from
Nov 16, 2021

Conversation

jens-erdmann
Copy link
Collaborator

Convert c style joins to python joins.
Simplify display_compatibility function.

See commits for details.

@jens-erdmann jens-erdmann force-pushed the pyification branch 2 times, most recently from 8e0433f to 29430f6 Compare November 14, 2021 22:19
@priv-kweihmann
Copy link
Collaborator

Simplyfiy in first commit message wants to become Simplify - apart from that I'm fine with the proposed changes

@jens-erdmann jens-erdmann force-pushed the pyification branch 6 times, most recently from a472ebe to 4e7a047 Compare November 15, 2021 09:21
@jens-erdmann
Copy link
Collaborator Author

Simplyfiy in first commit message wants to become Simplify - apart from that I'm fine with the proposed changes

I removed that one for now until I understand the errors in test. Seems like I am breaking stuff by oversimplifying. 😅

@jens-erdmann jens-erdmann force-pushed the pyification branch 2 times, most recently from 343c6fd to 9bcd85e Compare November 15, 2021 13:24
@jens-erdmann
Copy link
Collaborator Author

depends on #151

Instead of crafting a string from a list manually the python builtin
join was used.

Signed-off-by: Jens Erdmann <[email protected]>
Rework license_expression_set_list_to_string function by making more use
of built in python functions instead of implementing joins by hand.

Signed-off-by: Jens Erdmann <[email protected]>
Rework function interim_license_expression_list_to_string to be more
python instead of c style.
Removing logic to determine first items and inserting delimiters.

Signed-off-by: Jens Erdmann <[email protected]>
Replace logic to hand craft string in c style with actual python builtin
formatted string.

Signed-off-by: Jens Erdmann <[email protected]>
Replace c style string concatination with python formatted string.

Signed-off-by: Jens Erdmann <[email protected]>
Copy link
Collaborator

@priv-kweihmann priv-kweihmann left a comment

Choose a reason for hiding this comment

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

Not a hundred percent sure if that needs some additional test coverage - but changes lgtm

@jens-erdmann
Copy link
Collaborator Author

Not a hundred percent sure if that needs some additional test coverage - but changes lgtm

The markdown stuff is covered as I learned by failing a test.

@jens-erdmann jens-erdmann requested a review from hesa November 16, 2021 20:57
@hesa hesa merged commit 13a1f36 into vinland-technology:main Nov 16, 2021
@jens-erdmann jens-erdmann deleted the pyification branch November 20, 2021 09:25
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.

3 participants