getsentry / responses

A utility for mocking out the Python Requests library.
Apache License 2.0
4.14k stars 354 forks source link

modernize source with pyupgrade #668

Closed asottile-sentry closed 1 year ago

asottile-sentry commented 1 year ago

noticed a few python2isms so I figured I'd fix them

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (771477f) 100.00% compared to head (2f81bd5) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #668 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 9 9 Lines 2968 2967 -1 ========================================= - Hits 2968 2967 -1 ``` | [Files Changed](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [responses/\_\_init\_\_.py](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-cmVzcG9uc2VzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [responses/matchers.py](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-cmVzcG9uc2VzL21hdGNoZXJzLnB5) | `100.00% <100.00%> (ø)` | | | [responses/registries.py](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-cmVzcG9uc2VzL3JlZ2lzdHJpZXMucHk=) | `100.00% <100.00%> (ø)` | | | [responses/tests/test\_recorder.py](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-cmVzcG9uc2VzL3Rlc3RzL3Rlc3RfcmVjb3JkZXIucHk=) | `100.00% <100.00%> (ø)` | | | [responses/tests/test\_responses.py](https://app.codecov.io/gh/getsentry/responses/pull/668?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-cmVzcG9uc2VzL3Rlc3RzL3Rlc3RfcmVzcG9uc2VzLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.