Start in on star import eradication

This commit is contained in:
Jeff Forcier 2014-03-07 16:17:19 -08:00
parent b29d018e36
commit b4cd4bea1d
10 changed files with 11 additions and 10 deletions

View File

@ -33,7 +33,7 @@ import paramiko
from paramiko import util
from paramiko.auth_handler import AuthHandler
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.dsskey import DSSKey
from paramiko.kex_gex import KexGex

View File

@ -30,7 +30,7 @@ import struct
import traceback
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

View File

@ -21,7 +21,7 @@
"""
import threading, socket
from paramiko.common import *
from paramiko.common import asbytes
class LoopSocket (object):

View File

@ -24,7 +24,7 @@ import os
import sys
from paramiko import ServerInterface, SFTPServerInterface, SFTPServer, SFTPAttributes, \
SFTPHandle, SFTP_OK, AUTH_SUCCESSFUL, OPEN_SUCCEEDED
from paramiko.common import *
from paramiko.common import o666
class StubServer (ServerInterface):

View File

@ -22,7 +22,7 @@ Some unit tests for the BufferedFile abstraction.
import unittest
from paramiko.file import BufferedFile
from paramiko.common import *
from paramiko.common import linefeed_byte, crlf, cr_byte
class LoopbackFile (BufferedFile):

View File

@ -26,7 +26,7 @@ import paramiko.util
from paramiko.kex_group1 import KexGroup1
from paramiko.kex_gex import KexGex
from paramiko import Message
from paramiko.common import *
from paramiko.common import byte_chr
class FakeRng (object):

View File

@ -22,7 +22,7 @@ Some unit tests for ssh protocol message blocks.
import unittest
from paramiko.message import Message
from paramiko.common import *
from paramiko.common import byte_chr, zero_byte
class MessageTest (unittest.TestCase):

View File

@ -25,7 +25,7 @@ from tests.loop import LoopSocket
from Crypto.Cipher import AES
from Crypto.Hash import SHA, HMAC
from paramiko import Message, Packetizer, util
from paramiko.common import *
from paramiko.common import byte_chr, zero_byte
x55 = byte_chr(0x55)
x1f = byte_chr(0x1f)

View File

@ -25,13 +25,14 @@ do test file operations in (so no existing files will be harmed).
from binascii import hexlify
import os
import sys
import warnings
import threading
import unittest
from tempfile import mkstemp
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.loop import LoopSocket
from tests.util import test_path

View File

@ -33,7 +33,7 @@ import time
import unittest
import paramiko
from paramiko.common import *
from paramiko.common import o660
from tests.stub_sftp import StubServer, StubSFTPServer
from tests.loop import LoopSocket
from tests.test_sftp import get_sftp