diff options
author | Reinier Heeres <reinier@heeres.eu> | 2009-09-15 22:21:12 (GMT) |
---|---|---|
committer | Reinier Heeres <reinier@heeres.eu> | 2009-09-15 22:21:12 (GMT) |
commit | 093c39f015f6d87d5af28ad5e5addb7dd7a1d232 (patch) | |
tree | 4a64838f8ffdaef2ef373dd9fa3f89f64c24fd53 /calculate.py | |
parent | 5919fe241f327eb5e4a032770044015aa9d14846 (diff) |
Fix unicode string bug
Diffstat (limited to 'calculate.py')
-rw-r--r-- | calculate.py | 2 |
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) |