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

Use f-strings and some minor cleanups #283

Merged
merged 5 commits into from Nov 6, 2018
Merged

Conversation

keszybz
Copy link
Member

@keszybz keszybz commented Nov 6, 2018

No description provided.

I kept or switched to .format in a few places where the arguments were
more complicated.
This is useful during development to allow 'import mkosi', for
example to test import functions and such. In the future it'll also
be useful if we grow any unittests.
@@ -193,7 +193,7 @@ def gpt_root_native(arch: str) -> Tuple[uuid.UUID, uuid.UUID]:
elif arch == 'aarch64':
return GPTRootTypePair(GPT_ROOT_ARM_64, GPT_ROOT_ARM_64_VERITY)
else:
Copy link
Member

Choose a reason for hiding this comment

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

hmm, the python version check at the top of the script should be updated to 3.6 now, right?

@poettering
Copy link
Member

lgtm but misses the updated python version check

f-strings are a syntax error with older versions anyway, but let's bump
the version string for any human readers.
@keszybz
Copy link
Member Author

keszybz commented Nov 6, 2018

UPdated.

@poettering poettering merged commit 5eccb8f into systemd:master Nov 6, 2018
@fsateler
Copy link
Member

fsateler commented Nov 7, 2018

Setup.py is missing (which is probably where distros will look).

@keszybz keszybz deleted the f-strings branch November 8, 2018 12:53
@lucaswerkmeister
Copy link
Member

Setup.py is missing (which is probably where distros will look).

#285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants