from .xlate import XLATOR
-__version__ = '0.9.2'
+__version__ = '0.9.3'
LOG = logging.getLogger(__name__)
h=self.host, p=self.ssh_port, u=self.ssh_user))
if self.simulate:
- if self.verbose > 1:
- LOG.debug(_(
- "Simulating SCP of {local!r} to {user}@{host}:{remote} ...").format(
- local=str(local_file), user=self.ssh_user,
- host=self.host, remote=str(remote_file)))
+ LOG.debug(_(
+ "Simulating SCP of {local!r} to {user}@{host}:{remote} ...").format(
+ local=str(local_file), user=self.ssh_user,
+ host=self.host, remote=str(remote_file)))
else:
ssh.connect(
sftp = ssh.open_sftp()
- if self.verbose > 1:
- LOG.debug(_("SCP of {local!r} to {user}@{host}:{remote} ...").format(
- local=str(local_file), user=self.ssh_user,
- host=self.host, remote=str(remote_file)))
+ LOG.debug(_("SCP of {local!r} to {user}@{host}:{remote} ...").format(
+ local=str(local_file), user=self.ssh_user,
+ host=self.host, remote=str(remote_file)))
sftp.put(str(local_file), str(remote_file))