aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/xmlpatterns/schema/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmlpatterns/schema/schema.py b/examples/xmlpatterns/schema/schema.py
index aef92011e..677b56498 100644
--- a/examples/xmlpatterns/schema/schema.py
+++ b/examples/xmlpatterns/schema/schema.py
@@ -200,7 +200,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_SchemaMainWindow):
self.validate()
def instanceSelected(self, index):
- if index is -1:
+ if index == -1:
return
index += 2 * self.schemaSelection.currentIndex()