summaryrefslogtreecommitdiff
path: root/paramiko/ber.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-11 20:25:59 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-11 20:27:28 -0500
commit6507003f0b3c6be60c34e32ed0395672a121acfd (patch)
treec088406a58bdc61339e4f07bfbda60abcf14e88d /paramiko/ber.py
parentec8948158e26df0ec549e333cc2ea4bb22d56350 (diff)
downloadparamiko-6507003f0b3c6be60c34e32ed0395672a121acfd.tar.gz
flake8
Diffstat (limited to 'paramiko/ber.py')
-rw-r--r--paramiko/ber.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/ber.py b/paramiko/ber.py
index 051a9537..ce6d7007 100644
--- a/paramiko/ber.py
+++ b/paramiko/ber.py
@@ -19,6 +19,7 @@ from paramiko.common import max_byte, zero_byte, byte_ord, byte_chr
import paramiko.util as util
from paramiko.util import b
+from paramiko.sftp import int64
class BERException(Exception):
@@ -119,7 +120,7 @@ class BER(object):
self.encode_tlv(1, max_byte)
else:
self.encode_tlv(1, zero_byte)
- elif (type(x) is int) or (type(x) is long):
+ elif (type(x) is int) or (type(x) is int64):
self.encode_tlv(2, util.deflate_long(x))
elif type(x) is str:
self.encode_tlv(4, x)