Start in on star import eradication
This commit is contained in:
parent
b29d018e36
commit
b4cd4bea1d
|
@ -33,7 +33,7 @@ import paramiko
|
||||||
from paramiko import util
|
from paramiko import util
|
||||||
from paramiko.auth_handler import AuthHandler
|
from paramiko.auth_handler import AuthHandler
|
||||||
from paramiko.channel import Channel
|
from paramiko.channel import Channel
|
||||||
from paramiko.common import *
|
from paramiko.common import * # Legit, uses dozens of constants & funcs
|
||||||
from paramiko.compress import ZlibCompressor, ZlibDecompressor
|
from paramiko.compress import ZlibCompressor, ZlibDecompressor
|
||||||
from paramiko.dsskey import DSSKey
|
from paramiko.dsskey import DSSKey
|
||||||
from paramiko.kex_gex import KexGex
|
from paramiko.kex_gex import KexGex
|
||||||
|
|
|
@ -30,7 +30,7 @@ import struct
|
||||||
import traceback
|
import traceback
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from paramiko.common import *
|
from paramiko.common import PY2, DEBUG, long, zero_byte, byte_ord, xffffffff, logging, b, max_byte
|
||||||
from paramiko.config import SSHConfig
|
from paramiko.config import SSHConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import threading, socket
|
import threading, socket
|
||||||
from paramiko.common import *
|
from paramiko.common import asbytes
|
||||||
|
|
||||||
|
|
||||||
class LoopSocket (object):
|
class LoopSocket (object):
|
||||||
|
|
|
@ -24,7 +24,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
from paramiko import ServerInterface, SFTPServerInterface, SFTPServer, SFTPAttributes, \
|
from paramiko import ServerInterface, SFTPServerInterface, SFTPServer, SFTPAttributes, \
|
||||||
SFTPHandle, SFTP_OK, AUTH_SUCCESSFUL, OPEN_SUCCEEDED
|
SFTPHandle, SFTP_OK, AUTH_SUCCESSFUL, OPEN_SUCCEEDED
|
||||||
from paramiko.common import *
|
from paramiko.common import o666
|
||||||
|
|
||||||
|
|
||||||
class StubServer (ServerInterface):
|
class StubServer (ServerInterface):
|
||||||
|
|
|
@ -22,7 +22,7 @@ Some unit tests for the BufferedFile abstraction.
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from paramiko.file import BufferedFile
|
from paramiko.file import BufferedFile
|
||||||
from paramiko.common import *
|
from paramiko.common import linefeed_byte, crlf, cr_byte
|
||||||
|
|
||||||
|
|
||||||
class LoopbackFile (BufferedFile):
|
class LoopbackFile (BufferedFile):
|
||||||
|
|
|
@ -26,7 +26,7 @@ import paramiko.util
|
||||||
from paramiko.kex_group1 import KexGroup1
|
from paramiko.kex_group1 import KexGroup1
|
||||||
from paramiko.kex_gex import KexGex
|
from paramiko.kex_gex import KexGex
|
||||||
from paramiko import Message
|
from paramiko import Message
|
||||||
from paramiko.common import *
|
from paramiko.common import byte_chr
|
||||||
|
|
||||||
|
|
||||||
class FakeRng (object):
|
class FakeRng (object):
|
||||||
|
|
|
@ -22,7 +22,7 @@ Some unit tests for ssh protocol message blocks.
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from paramiko.message import Message
|
from paramiko.message import Message
|
||||||
from paramiko.common import *
|
from paramiko.common import byte_chr, zero_byte
|
||||||
|
|
||||||
|
|
||||||
class MessageTest (unittest.TestCase):
|
class MessageTest (unittest.TestCase):
|
||||||
|
|
|
@ -25,7 +25,7 @@ from tests.loop import LoopSocket
|
||||||
from Crypto.Cipher import AES
|
from Crypto.Cipher import AES
|
||||||
from Crypto.Hash import SHA, HMAC
|
from Crypto.Hash import SHA, HMAC
|
||||||
from paramiko import Message, Packetizer, util
|
from paramiko import Message, Packetizer, util
|
||||||
from paramiko.common import *
|
from paramiko.common import byte_chr, zero_byte
|
||||||
|
|
||||||
x55 = byte_chr(0x55)
|
x55 = byte_chr(0x55)
|
||||||
x1f = byte_chr(0x1f)
|
x1f = byte_chr(0x1f)
|
||||||
|
|
|
@ -25,13 +25,14 @@ do test file operations in (so no existing files will be harmed).
|
||||||
|
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
import threading
|
import threading
|
||||||
import unittest
|
import unittest
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
|
|
||||||
import paramiko
|
import paramiko
|
||||||
from paramiko.common import *
|
from paramiko.common import PY2, b, u, StringIO, o777, o600
|
||||||
from tests.stub_sftp import StubServer, StubSFTPServer
|
from tests.stub_sftp import StubServer, StubSFTPServer
|
||||||
from tests.loop import LoopSocket
|
from tests.loop import LoopSocket
|
||||||
from tests.util import test_path
|
from tests.util import test_path
|
||||||
|
|
|
@ -33,7 +33,7 @@ import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import paramiko
|
import paramiko
|
||||||
from paramiko.common import *
|
from paramiko.common import o660
|
||||||
from tests.stub_sftp import StubServer, StubSFTPServer
|
from tests.stub_sftp import StubServer, StubSFTPServer
|
||||||
from tests.loop import LoopSocket
|
from tests.loop import LoopSocket
|
||||||
from tests.test_sftp import get_sftp
|
from tests.test_sftp import get_sftp
|
||||||
|
|
Loading…
Reference in New Issue