Passed autopep8

This commit is contained in:
Sergio Costas 2017-01-06 19:36:01 +01:00
parent 27828d2dc5
commit fdf7f148c1
45 changed files with 3541 additions and 3338 deletions

View file

@ -21,22 +21,23 @@ import os
import devedeng.configuration_data
import devedeng.executor
class file_copy(devedeng.executor.executor):
def __init__(self,input_path, output_path):
def __init__(self, input_path, output_path):
devedeng.executor.executor.__init__(self)
self.config = devedeng.configuration_data.configuration.get_config()
self.text = _("Copying file %(X)s") % {"X": os.path.basename(input_path)}
self.text = _("Copying file %(X)s") % {
"X": os.path.basename(input_path)}
self.command_var=[]
self.command_var = []
self.command_var.append("copy_files_verbose.py")
self.command_var.append(input_path)
self.command_var.append(output_path)
def process_stdout(self,data):
def process_stdout(self, data):
if (data is None) or (len(data) == 0):
return
@ -45,10 +46,10 @@ class file_copy(devedeng.executor.executor):
if (pos == -1):
return
p = float(data[0][7:pos])
self.progress_bar[1].set_fraction(p/ 100.0)
self.progress_bar[1].set_fraction(p / 100.0)
self.progress_bar[1].set_text("%.1f%%" % (p))
return
def process_stderr(self,data):
def process_stderr(self, data):
return