Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Modernize Python syntax using pyupgrade --py36-plus #278

Merged
merged 2 commits into from
Dec 24, 2020

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Dec 24, 2020

There were some things left from previous manual updates, use of pyupgrade --py36-plus found those:

  • Do not specify mode=rt for open as it is the default
  • Use OSError instead of IOError
  • Modernize class syntax
  • Convert some string formatting in f-strings

@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #278 (5bf3282) into master (7ca5a84) will not change coverage.
The diff coverage is 63.63%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #278   +/-   ##
=======================================
  Coverage   90.89%   90.89%           
=======================================
  Files          20       20           
  Lines        1043     1043           
  Branches      223      223           
=======================================
  Hits          948      948           
  Misses         54       54           
  Partials       41       41           
Impacted Files Coverage Δ
auditwheel/lddtree.py 92.90% <0.00%> (ø)
auditwheel/main_show.py 70.58% <40.00%> (ø)
auditwheel/condatools.py 100.00% <100.00%> (ø)
auditwheel/repair.py 85.59% <100.00%> (ø)
auditwheel/tmpdirs.py 100.00% <100.00%> (ø)
auditwheel/wheeltools.py 92.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ca5a84...5bf3282. Read the comment docs.

@mayeut mayeut merged commit 2661eea into pypa:master Dec 24, 2020
@mayeut mayeut deleted the pyupgrade branch December 24, 2020 10:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant