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

Various Cleanups #105

Merged
merged 9 commits into from
Dec 28, 2017
Merged

Various Cleanups #105

merged 9 commits into from
Dec 28, 2017

Conversation

allenh1
Copy link
Contributor

@allenh1 allenh1 commented Dec 20, 2017

This is some cleanup prepping for a new release. I'll update this as I notice things finishing the currently open PR's.

@allenh1 allenh1 self-assigned this Dec 20, 2017
@allenh1 allenh1 mentioned this pull request Dec 22, 2017
@allenh1 allenh1 force-pushed the various-cleanups branch 2 times, most recently from cc2f96e to 5eaee18 Compare December 28, 2017 19:16
@allenh1 allenh1 requested a review from tfoote December 28, 2017 19:52
tfoote
tfoote previously approved these changes Dec 28, 2017
Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Overall looks fine. One possible improvement on the split. Clearing unused code is always good.

@@ -123,7 +123,7 @@ def get_ebuild_text(self, distributor, license_text):
if len(split) > 1:
# they did something like "BSD,GPL,blah"
ret += 'LICENSE="( '
ret += ' '.join([get_license(l) for l in split])
ret += ' '.join([get_license(l.lstrip()) for l in split])
Copy link
Member

Choose a reason for hiding this comment

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

Why only a lstrip here? You might as well strip both ends of the tokens.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. Fixed.

@allenh1 allenh1 merged commit e488ddc into master Dec 28, 2017
@allenh1 allenh1 deleted the various-cleanups branch December 28, 2017 21:17
zffgithub pushed a commit to zffgithub/superflore that referenced this pull request Apr 11, 2023
* Strip spaces inserted in a comma separated list.

* Move a TODO to the appropriate place.

* Remove unused functions.

* Remove unnecessary newline.

* Remove unused imports.

* Fix logic in case one of the caches is missing the entry.

* Cleanups after running vulture.

* Remove unused script.

* Strip both sides of the string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants