Skip to content

Commit

Permalink
Prefer io.BytesIO over six; available on all supported Pythons
Browse files Browse the repository at this point in the history
On all supported Pythons, the io.BytesIO is always a stream
implementation using an in-memory bytes buffer. Makes code slightly more
forward compatible by reducing use of the six module.
  • Loading branch information
jdufresne authored and xavfernandez committed Oct 19, 2018
1 parent c72b752 commit 2d545dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file.
2 changes: 1 addition & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import tempfile
import time
import warnings
from io import BytesIO

import pytest
from mock import Mock, patch
from pip._vendor.six import BytesIO

from pip._internal.exceptions import (
HashMismatch, HashMissing, InstallationError, UnsupportedPythonVersion,
Expand Down

0 comments on commit 2d545dd

Please sign in to comment.