From: Ben Darnell Date: Thu, 9 Jun 2011 06:58:30 +0000 (-0700) Subject: Fix a non-ascii docstring X-Git-Tag: v2.0.0~20^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b92e70d07c706cefd5d3e85d8c1670384228ba94;p=thirdparty%2Ftornado.git Fix a non-ascii docstring --- diff --git a/tornado/locale.py b/tornado/locale.py index 0cd247df0..b16a90006 100644 --- a/tornado/locale.py +++ b/tornado/locale.py @@ -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