Skip to content

Commit

Permalink
syntax issues caught by rpmbuild linter
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Nov 14, 2023
1 parent 4e9c387 commit edcd261
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sarracenia/transfer/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def getAccelerated(self, msg, remote_file, local_file, length=0):
if base_url[-1] == '/':
base_url = base_url[0:-1]
arg1 = base_url + self.cwd + os.sep + remote_file
arg1 = arg1.replace(' ', '\ ')
arg1 = arg1.replace(' ', '\\ ')
arg2 = local_file

cmd = self.o.accelCpCommand.replace('%s', arg1)
Expand Down
4 changes: 2 additions & 2 deletions sarracenia/transfer/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def getAccelerated(self, msg, remote_file, local_file, length=0):
if base_url[-1] == '/':
base_url = base_url[0:-1]
arg1 = base_url + self.pwd + os.sep + remote_file
arg1 = arg1.replace(' ', '\ ')
arg1 = arg1.replace(' ', '\\ ')
arg2 = local_file

cmd = self.o.accelFtpgetCommand.replace('%s', arg1)
Expand Down Expand Up @@ -408,7 +408,7 @@ def putAccelerated(self, msg, local_file, remote_file, length=0):
if dest_baseUrl[-1] == '/':
dest_baseUrl = dest_baseUrl[0:-1]
arg2 = dest_baseUrl + msg['new_dir'] + os.sep + remote_file
arg2 = arg2.replace(' ', '\ ')
arg2 = arg2.replace(' ', '\\ ')
arg1 = local_file

cmd = self.o.accelFtpputCommand.replace('%s', arg1)
Expand Down
2 changes: 1 addition & 1 deletion sarracenia/transfer/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get(self,
def getAccelerated(self, msg, remote_file, local_file, length):

arg1 = msg['baseUrl'] + '/' + msg['relPath']
arg1 = arg1.replace(' ', '\ ')
arg1 = arg1.replace(' ', '\\ ')
arg2 = local_file

cmd = self.o.accelWgetCommand.replace('%s', arg1)
Expand Down
4 changes: 2 additions & 2 deletions sarracenia/transfer/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def getAccelerated(self, msg, remote_file, local_file, length=0):
if base_url[-1] == '/':
base_url = base_url[0:-1]
arg1 = base_url + ':' + self.pwd + os.sep + remote_file
arg1 = arg1.replace(' ', '\ ')
arg1 = arg1.replace(' ', '\\ ')
arg2 = local_file

cmd = self.o.accelScpCommand.replace('%s', arg1)
Expand Down Expand Up @@ -494,7 +494,7 @@ def putAccelerated(self, msg, local_file, remote_file, length=0):
if dest_baseUrl[-1] == '/':
dest_baseUrl = dest_baseUrl[0:-1]
arg2 = dest_baseUrl + ':' + msg['new_dir'] + os.sep + remote_file
arg2 = arg2.replace(' ', '\ ')
arg2 = arg2.replace(' ', '\\ ')
arg1 = local_file

cmd = self.o.accelScpCommand.replace('%s', arg1)
Expand Down

0 comments on commit edcd261

Please sign in to comment.