Skip to content

Remove unnecessary use compat shim of six.binary_type #6189

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

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Remove unnecessary use compat shim of six.binary_type #6189

merged 1 commit into from
Sep 17, 2018

Conversation

jdufresne
Copy link
Contributor

The type bytes is available on all supported Pythons. On Python 2.7, it is an alias for str, same as six.binary_type. Makes the code more forward compatible with Python 3.

@codecov-io
Copy link

Codecov Report

Merging #6189 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #6189   +/-   ##
=======================================
  Coverage   96.18%   96.18%           
=======================================
  Files         128      128           
  Lines       17645    17645           
  Branches     1460     1460           
=======================================
  Hits        16972    16972           
  Misses        465      465           
  Partials      208      208

The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type. Makes the code more
forward compatible with Python 3.
Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

Yep. Great. Thanks @jdufresne!

@carltongibson carltongibson added this to the 3.9 Release milestone Sep 17, 2018
@carltongibson carltongibson merged commit ed6340e into encode:master Sep 17, 2018
@jdufresne jdufresne deleted the binary-type branch May 1, 2019 13:07
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type. Makes the code more
forward compatible with Python 3.
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.

4 participants