diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-09 22:58:18 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-09 23:26:00 -0500 |
commit | f6d25cb8d4f69d073f62376b1488525efebd0938 (patch) | |
tree | 6668a43046ba135e4484ee8d1c00d527cb540d38 | |
parent | 6d79d42c42b7f5dc2f0c433271c9ef2cca33136c (diff) |
text_type -> str
-rw-r--r-- | paramiko/file.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index 9c2872e7..a30e5137 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -24,7 +24,6 @@ from paramiko.common import ( linefeed_byte, cr_byte_value, ) -from paramiko.py3compat import text_type from paramiko.util import ClosingContextManager, u @@ -377,7 +376,7 @@ class BufferedFile(ClosingContextManager): :param data: ``str``/``bytes`` data to write """ - if isinstance(data, text_type): + if isinstance(data, str): # Accept text and encode as utf-8 for compatibility only. data = data.encode("utf-8") if self._closed: |