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

Port to python3 and pytest as test runner #90

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

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 <[email protected]>
Signed-off-by: Nils Philippsen <[email protected]>
Signed-off-by: Pierre-Yves Chibon <[email protected]>
- 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 <[email protected]>
@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.

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