Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Port to python3 and pytest as test runner#90

Open
pypingou wants to merge 4 commits intodevelopfrom
py3_port
Open

Port to python3 and pytest as test runner#90
pypingou wants to merge 4 commits intodevelopfrom
py3_port

Conversation

@pypingou
Copy link
Member

No description provided.

@nphilipp
Copy link
Member

The Python 3 changes look a lot like 2to3's doing... Some of the changes are unnecessary. I'll take a closer look tomorrow. Also, I can't seem to assign this to myself, do I need to be added to the repo?

@pypingou
Copy link
Member Author

I've used 2to3 to get me started on the conversion, I admit not having spent much time reviewing its work afterwards.
I'll give you commit on my fork so you can tweak the PR as you see fit.

pypingou added 2 commits June 30, 2020 11:54
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Signed-off-by: Nils Philippsen <nils@redhat.com>
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
- use dict, list, set literals and comprehensions where sensible
- don't build lists from generators superfluously
- don't use dict.keys(), rather the dict var itself where an iterable is
  expected
- sorted() returns a list already
- remove Python 2 compat
- use f-strings, except for logging, don't use % operator there, for
  late interpolation
- remove u-strings from comments, too

Signed-off-by: Nils Philippsen <nils@redhat.com>
@nphilipp
Copy link
Member

nphilipp commented Jul 1, 2020

I have more fixes in queue, but they're not really related to Python 3, so I've kept them in another branch.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants