Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/calculate.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2009-09-15 22:21:12 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2009-09-15 22:21:12 (GMT)
commit093c39f015f6d87d5af28ad5e5addb7dd7a1d232 (patch)
tree4a64838f8ffdaef2ef373dd9fa3f89f64c24fd53 /calculate.py
parent5919fe241f327eb5e4a032770044015aa9d14846 (diff)
Fix unicode string bug
Diffstat (limited to 'calculate.py')
-rw-r--r--calculate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calculate.py b/calculate.py
index 673e002..d7060de 100644
--- a/calculate.py
+++ b/calculate.py
@@ -181,7 +181,7 @@ class Equation:
self.append_with_superscript_tags(buf, eqnstr, tagbignarrow)
# Add result
- if type(self.result) is types.StringType:
+ if type(self.result) in (types.StringType, types.UnicodeType):
resstr = str(self.result)
buf.insert_with_tags(buf.get_end_iter(), resstr,
tagsmallnarrow, tagjustright)