Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: third_party/handlebar/handlebar.py

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SamplesDataSource.Factory Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698