aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--screenplain/richstring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/screenplain/richstring.py b/screenplain/richstring.py
index 8a11fec..74098a2 100644
--- a/screenplain/richstring.py
+++ b/screenplain/richstring.py
@@ -70,13 +70,13 @@ class RichString(object):
def __eq__(self, other):
return (
- type(self) == type(other) and
+ isinstance(other, RichString) and
self.segments == other.segments
)
def __ne__(self, other):
return (
- type(self) != type(other) or
+ isinstance(other, RichString) and
self.segments != other.segments
)