Skip to content

Commit 31be443

Browse files
committed
Format black
1 parent b936ec6 commit 31be443

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pysqa/ext/remote.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ def _transfer_files(self, file_dict, sftp=None, transfer_back=False):
228228
def _open_ssh_connection(self):
229229
ssh = paramiko.SSHClient()
230230
ssh.load_host_keys(self._ssh_known_hosts)
231-
if self._ssh_key is not None and self._ssh_key_passphrase is not None and not self._ssh_ask_for_password:
231+
if (
232+
self._ssh_key is not None
233+
and self._ssh_key_passphrase is not None
234+
and not self._ssh_ask_for_password
235+
):
232236
ssh.connect(
233237
hostname=self._ssh_host,
234238
port=self._ssh_port,
@@ -260,7 +264,7 @@ def _open_ssh_connection(self):
260264
hostname=self._ssh_host,
261265
port=self._ssh_port,
262266
username=self._ssh_username,
263-
password=getpass.getpass(prompt='SSH Password: ', stream=None),
267+
password=getpass.getpass(prompt="SSH Password: ", stream=None),
264268
)
265269
elif (
266270
self._ssh_password is not None
@@ -307,7 +311,7 @@ def authentication(title, instructions, prompt_list):
307311
hostname=self._ssh_host,
308312
port=self._ssh_port,
309313
username=self._ssh_username,
310-
password=getpass.getpass(prompt='SSH Password: ', stream=None),
314+
password=getpass.getpass(prompt="SSH Password: ", stream=None),
311315
)
312316
ssh._transport.auth_interactive_dumb(
313317
username=self._ssh_username, handler=None, submethods=""

0 commit comments

Comments
 (0)