tpl_str = biaweb_db.get_template_text (self.current_db, tpl_name)
# if template string cannot be obtained for some reason
- if tpl_str == False:
+ if tpl_str is False:
PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in retrieving template")
else:
# open edit dialog with title "template name" and text as the template string
# update the template with the new template string
ret = biaweb_db.update_template (self.current_db, tpl_name, upd_tpl_str)
# if update failed
- if ret == False:
+ if ret is False:
PyQt4.QtGui.QMessageBox.critical (self, "Error", "SQLite 3 error in updating template")