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

@ -63,7 +63,7 @@ class create_disk_window:
path = self.wpath.get_filename()
name = self.wname.get_text()
if ((path == None) or (path == "") or (name == None) or (name == "")):
if ((path is None) or (path == "") or (name is None) or (name == "")):
self.waccept.set_sensitive(False)
else:
self.waccept.set_sensitive(True)