Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <quinticent@phuket.(none)>2006-10-03 21:06:48 (GMT)
committer John (J5) Palmieri <quinticent@phuket.(none)>2006-10-03 21:06:48 (GMT)
commit6f337e0b14f022e942c723ddcad89279f727a099 (patch)
tree23436f0a6f5860e96226453907ecd2bf6dc0d9cb /sugar/chat
parent7c342e75bf0cd3a1e1a208568cf14f7d013bf8c8 (diff)
Changed all type checking to use isinstance
Diffstat (limited to 'sugar/chat')
-rw-r--r--sugar/chat/sketchpad/SVGdraw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/chat/sketchpad/SVGdraw.py b/sugar/chat/sketchpad/SVGdraw.py
index cbd8729..803cf1d 100644
--- a/sugar/chat/sketchpad/SVGdraw.py
+++ b/sugar/chat/sketchpad/SVGdraw.py
@@ -374,7 +374,7 @@ class SVGelement:
f.write('\n'+'\t'*(level+2)+line)
f.write('\n'+'\t'*(level+1)+']]>\n')
if self.text:
- if type(self.text)==type(''): #If the text is only text
+ if isinstance(self.text, str): #If the text is only text
f.write(_escape(str(self.text)))
else: #If the text is a spannedtext class
f.write(str(self.text))