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

Replace tokenization with tokenize_rt #77

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Jul 22, 2022

The standard library module tokenize does not round trip, so we had to
implement our own tokenization on top of it. However, tokenize_rt does
it better and will enable #75, so let's adopt it instead.

The standard library module `tokenize` does not round trip, so we had to
implement our own tokenization on top of it. However, tokenize_rt does
it better, so let's adopt it instead.
@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #77 (ce69cb5) into master (0d21b04) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #77   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          110        93   -17     
  Branches        31        26    -5     
=========================================
- Hits           110        93   -17     
Impacted Files Coverage Δ
src/unasync/__init__.py 100.00% <100.00%> (ø)

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

Much cleaner, thanks tokenize_rt! Only thing that stood out to me was the version pin but if we have a good reason that's fine for me.

@pquentin
Copy link
Member Author

Thanks, I removed the pin! Also fixed Windows CI. Can you please take another look?

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

Looks great!

@pquentin pquentin merged commit 1b6fd0c into python-trio:master Jul 22, 2022
@pquentin
Copy link
Member Author

pquentin commented Jul 22, 2022

@asottile Thank you for tokenize_rt!
@sethmlarson Thank you for the reviews!

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.

2 participants