]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix a non-ascii docstring
authorBen Darnell <ben@bendarnell.com>
Thu, 9 Jun 2011 06:58:30 +0000 (23:58 -0700)
committerBen Darnell <ben@bendarnell.com>
Thu, 9 Jun 2011 06:58:30 +0000 (23:58 -0700)
tornado/locale.py

index 0cd247df03d21222e32e6a83cbf4833360aea9d2..b16a9000697ac10bac7e4fbc3a05bdcdca721e84 100644 (file)
@@ -78,7 +78,7 @@ def set_default_locale(code):
 
 
 def load_translations(directory):
-    """Loads translations from CSV files in a directory.
+    u"""Loads translations from CSV files in a directory.
 
     Translations are strings with optional Python-style named placeholders
     (e.g., "My name is %(name)s") and their associated translations.
@@ -100,8 +100,8 @@ def load_translations(directory):
     Example translation es_LA.csv:
 
         "I love you","Te amo"
-        "%(name)s liked this","A %(name)s les gust\xf3 esto","plural"
-        "%(name)s liked this","A %(name)s le gust\xf3 esto","singular"
+        "%(name)s liked this","A %(name)s les gust\u00f3 esto","plural"
+        "%(name)s liked this","A %(name)s le gust\u00f3 esto","singular"
 
     """
     global _translations