diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-11 20:25:59 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-11 20:27:28 -0500 |
commit | 6507003f0b3c6be60c34e32ed0395672a121acfd (patch) | |
tree | c088406a58bdc61339e4f07bfbda60abcf14e88d | |
parent | ec8948158e26df0ec549e333cc2ea4bb22d56350 (diff) |
flake8
-rw-r--r-- | paramiko/_winapi.py | 1 | ||||
-rw-r--r-- | paramiko/ber.py | 3 | ||||
-rw-r--r-- | paramiko/hostkeys.py | 1 | ||||
-rw-r--r-- | tests/test_file.py | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/paramiko/_winapi.py b/paramiko/_winapi.py index fcc18552..ab2a71e6 100644 --- a/paramiko/_winapi.py +++ b/paramiko/_winapi.py @@ -7,7 +7,6 @@ in jaraco.windows and asking the author to port the fixes back here. """ import builtins -import sys import ctypes.wintypes from paramiko.util import u 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) diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index dc8fb8d0..bd962287 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -20,7 +20,6 @@ from base64 import encodebytes, decodebytes import binascii import os -import sys from collections.abc import MutableMapping from hashlib import sha1 diff --git a/tests/test_file.py b/tests/test_file.py index bcd1ad2b..364bbce2 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -21,7 +21,6 @@ Some unit tests for the BufferedFile abstraction. """ import unittest -import sys from io import BytesIO from paramiko.common import linefeed_byte, crlf, cr_byte |