diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-09 21:42:27 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-09 23:26:00 -0500 |
commit | 76675c7c471c14ec0b3288cec2beaf400b757480 (patch) | |
tree | c9625e8e31c6f42d947b0aa01b37df4d82803d30 /paramiko | |
parent | 74eae059e2ae71044e31a580bc4ede1057c0053b (diff) | |
download | paramiko-76675c7c471c14ec0b3288cec2beaf400b757480.tar.gz |
Update BytesIO
Diffstat (limited to 'paramiko')
-rw-r--r-- | paramiko/file.py | 4 | ||||
-rw-r--r-- | paramiko/message.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index 91579f60..eeb2b8c6 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with Paramiko; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +from io import BytesIO + from paramiko.common import ( linefeed_byte_value, crlf, @@ -22,7 +24,7 @@ from paramiko.common import ( linefeed_byte, cr_byte_value, ) -from paramiko.py3compat import BytesIO, u, bytes_types, text_type +from paramiko.py3compat import u, bytes_types, text_type from paramiko.util import ClosingContextManager diff --git a/paramiko/message.py b/paramiko/message.py index fd9a2a2f..0927e529 100644 --- a/paramiko/message.py +++ b/paramiko/message.py @@ -21,10 +21,11 @@ Implementation of an SSH2 "message". """ import struct +from io import BytesIO from paramiko import util from paramiko.common import zero_byte, max_byte, one_byte -from paramiko.py3compat import long, BytesIO, u +from paramiko.py3compat import long, u class Message(object): |