Skip to content

Commit e685a3e

Browse files
author
Dan
committed
Indentation changes - cleanups
1 parent bc81728 commit e685a3e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pssh/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@
2727
2828
See :mod:`pssh.ParallelSSHClient` and :mod:`pssh.SSHClient` for class documentation.
2929
"""
30-
import logging
3130
from .utils import enable_host_logger
3231
from .pssh_client import ParallelSSHClient
3332
from .ssh_client import SSHClient
3433
from .exceptions import UnknownHostException, \
3534
AuthenticationException, ConnectionErrorException, SSHException
36-
35+
import logging
3736

3837
host_logger = logging.getLogger('pssh.host_logger')
3938
logger = logging.getLogger('pssh')

pssh/ssh_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SSHClient(object):
4141
"""Wrapper class over paramiko.SSHClient with sane defaults
4242
Honours ~/.ssh/config and /etc/ssh/ssh_config entries for host username \
4343
overrides"""
44-
44+
4545
def __init__(self, host,
4646
user=None, password=None, port=None,
4747
pkey=None, forward_ssh_agent=True,
@@ -185,11 +185,11 @@ def _connect(self, client, host, port, sock=None, retries=1):
185185

186186
def exec_command(self, command, sudo=False, user=None, **kwargs):
187187
"""Wrapper to :mod:`paramiko.SSHClient.exec_command`
188-
188+
189189
Opens a new SSH session with a new pty and runs command with given \
190190
`kwargs` if any. Greenlet then yields (sleeps) while waiting for \
191191
command to finish executing or channel to close indicating the same.
192-
192+
193193
:param command: Shell command to execute
194194
:type command: str
195195
:param sudo: (Optional) Run with sudo. Defaults to False

tests/test_ssh_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import os
3535
from test_pssh_client import USER_KEY
3636
import random, string
37-
import shutil
3837

3938
USER_KEY = paramiko.RSAKey.from_private_key_file(
4039
os.path.sep.join([os.path.dirname(__file__), 'test_client_private_key']))

0 commit comments

Comments
 (0)