summaryrefslogtreecommitdiff
path: root/paramiko/message.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-09 19:32:57 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-09 23:26:00 -0500
commit3e87f05b57213cc539670f85ac7ea8ccddb9e5c4 (patch)
tree5f3442839198de82f1376dbc53a0916856a8ebb9 /paramiko/message.py
parent768f3e238b26127cee5cf5d4d18a17a40c349c9e (diff)
downloadparamiko-3e87f05b57213cc539670f85ac7ea8ccddb9e5c4.tar.gz
Migrate some byte related helpers around
I feel like we should be able to just nuke byte_chr and friends at this point, but it's not entirely obvious, so let's rock that boat later.
Diffstat (limited to 'paramiko/message.py')
-rw-r--r--paramiko/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/message.py b/paramiko/message.py
index 6095d5de..f48e170a 100644
--- a/paramiko/message.py
+++ b/paramiko/message.py
@@ -23,7 +23,7 @@ Implementation of an SSH2 "message".
import struct
from paramiko import util
-from paramiko.common import zero_byte, max_byte, one_byte, asbytes
+from paramiko.common import zero_byte, max_byte, one_byte
from paramiko.py3compat import long, BytesIO, u, integer_types
@@ -270,7 +270,7 @@ class Message(object):
:param str s: string to add
"""
- s = asbytes(s)
+ s = util.asbytes(s)
self.add_int(len(s))
self.packet.write(s)
return self