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

Introductions and cleanups #419

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

zyga
Copy link

@zyga zyga commented Jul 27, 2018

Hello

I'm working on building the Fedora base snap using imagefactory and I was
thinking that as a part of saying hello and getting to know the code better, I
would send some cleanups that I do as I go through the code-base.

I don't know the deployment requirements but I'm working under the assumption
that Python 2.7 is required (that is, no need to support Python 2.6 anymore).
Please let me know how this feels, I will have more as I learn how the code works.

Signed-off-by: Zygmunt Krynicki [email protected]

zyga added 6 commits July 27, 2018 12:35
Signed-off-by: Zygmunt Krynicki <[email protected]>
The extra parentheses are not required and are not idiomatic python

Signed-off-by: Zygmunt Krynicki <[email protected]>
The standard import order is stdlib, 3rd party, internal
with newline between each section.

Signed-off-by: Zygmunt Krynicki <[email protected]>
Signed-off-by: Zygmunt Krynicki <[email protected]>
Apart from the future import where print is a function, not a statement, fix
incorrect print formatting calls. Calls like print("%s" % (foo)) are subtly
broken, depending on the value of foo, since (foo) is not a tuple but really
syntactic no-op. The correct way to do that is to use print("%s" % (foo,))

Signed-off-by: Zygmunt Krynicki <[email protected]>
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.

1 participant