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

@ -98,7 +98,7 @@ class subtitles_mux(devedeng.executor.executor):
def process_stderr(self,data):
if (data == None) or (len(data) == 0):
if (data is None) or (len(data) == 0):
return
if self.duration == 0:
@ -114,4 +114,4 @@ class subtitles_mux(devedeng.executor.executor):
self.progress_bar[1].set_fraction(t)
self.progress_bar[1].set_text("%.1f%%" % (100.0 * t))
return
return