Skip to content

Introductions and cleanups#419

Open
zyga wants to merge 6 commits into
redhat-imaging:masterfrom
zyga:cleanups
Open

Introductions and cleanups#419
zyga wants to merge 6 commits into
redhat-imaging:masterfrom
zyga:cleanups

Conversation

@zyga
Copy link
Copy Markdown

@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 zygmunt.krynicki@canonical.com

zyga added 6 commits July 27, 2018 12:35
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
The extra parentheses are not required and are not idiomatic python

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
The standard import order is stdlib, 3rd party, internal
with newline between each section.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
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 <zygmunt.krynicki@canonical.com>
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