Syntax change to make the code more "pythonyst"

This commit is contained in:
Sergio Costas 2016-02-05 22:18:19 +01:00
parent d977cfb2ef
commit 7a7d60ce92
21 changed files with 138 additions and 137 deletions

View file

@ -38,7 +38,7 @@ class file_copy(devedeng.executor.executor):
def process_stdout(self,data):
if (data == None) or (len(data) == 0):
if (data is None) or (len(data) == 0):
return
if (data[0].startswith("Copied ")):
pos = data[0].find("%")
@ -51,4 +51,4 @@ class file_copy(devedeng.executor.executor):
def process_stderr(self,data):
return
return