This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Replace all remaining six usage with native Python 3 equivalents #7704
Merged
Commits on Jun 15, 2020
-
Replace uses of
six.int_types
/binary_type
/string_types
Use native Python 3 `int`/`bytes`/`str` instead. Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for e5a4809 - Browse repository at this point
Copy the full SHA e5a4809View commit details -
Replace
six.StringIO
withio.StringIO
Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for 7458fa2 - Browse repository at this point
Copy the full SHA 7458fa2View commit details -
Replace
six.raise_from()
withraise … from
Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for 286a120 - Browse repository at this point
Copy the full SHA 286a120View commit details -
Replace
six.reraise()
with plainraise
In Python 3 the exception carries its own traceback, so no need to explicitly preserve it. Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for 277ca79 - Browse repository at this point
Copy the full SHA 277ca79View commit details -
Replace final
six.iteritems()
with.items()
Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for 64833ba - Browse repository at this point
Copy the full SHA 64833baView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5af234 - Browse repository at this point
Copy the full SHA c5af234View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61f98e9 - Browse repository at this point
Copy the full SHA 61f98e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68e3153 - Browse repository at this point
Copy the full SHA 68e3153View commit details -
Import
http.HTTPStatus
directly, rather than viasix.moves
`six.moves.http_client` was only being imported for the HTTP status codes, so just import that class directly instead.
Configuration menu - View commit details
-
Copy full SHA for b0d5297 - Browse repository at this point
Copy the full SHA b0d5297View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79ca7c7 - Browse repository at this point
Copy the full SHA 79ca7c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5497611 - Browse repository at this point
Copy the full SHA 5497611View commit details -
Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Configuration menu - View commit details
-
Copy full SHA for bdbb3a8 - Browse repository at this point
Copy the full SHA bdbb3a8View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.