Chromium Code Reviews| Index: third_party/handlebar/handlebar.py |
| diff --git a/third_party/handlebar/handlebar.py b/third_party/handlebar/handlebar.py |
| index c3f8ffee24d0022a9bf1278184f721ee6a86a714..fe90dd7c58d77647aa781cec8bc85c20b2d2b089 100644 |
| --- a/third_party/handlebar/handlebar.py |
| +++ b/third_party/handlebar/handlebar.py |
| @@ -68,7 +68,7 @@ class StringBuilder(object): |
| return self._length |
| def append(self, obj): |
| - string = str(obj) |
| + string = unicode(obj) |
|
cduvall
2012/07/20 19:40:51
I'll take these out before I commit, just showing
not at google - send to devlin
2012/07/23 13:25:37
Several hours later, and I know more than I really
cduvall
2012/07/23 18:10:37
Nice, I had some fun exploring Python unicode too.
|
| self._buf.append(string) |
| self._length += len(string) |
| @@ -349,7 +349,7 @@ class EscapedVariableNode(LeafNode): |
| def render(self, renderState): |
| value = self._id.resolve(renderState) |
| if value != None: |
| - self._appendEscapedHtml(renderState.text, str(value)) |
| + self._appendEscapedHtml(renderState.text, unicode(value)) |
| def _appendEscapedHtml(self, escaped, unescaped): |
| for c in unescaped: |