-
Notifications
You must be signed in to change notification settings - Fork 34
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
Various Cleanups #105
Conversation
cc2f96e
to
5eaee18
Compare
0b3ad4b
to
ac010ca
Compare
There was a problem hiding this 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]) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
* 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.
This is some cleanup prepping for a new release. I'll update this as I notice things finishing the currently open PR's.