[Python-checkins] r87462 - python/branches/py3k/Lib/gettext.py
benjamin.peterson
python-checkins at python.org
Fri Dec 24 00:45:39 CET 2010
Author: benjamin.peterson
Date: Fri Dec 24 00:45:39 2010
New Revision: 87462
Log:
update comment
Modified:
python/branches/py3k/Lib/gettext.py
Modified: python/branches/py3k/Lib/gettext.py
==============================================================================
--- python/branches/py3k/Lib/gettext.py (original)
+++ python/branches/py3k/Lib/gettext.py Fri Dec 24 00:45:39 2010
@@ -81,7 +81,7 @@
plural = expr.sub(' not \\1', plural)
# Regular expression and replacement function used to transform
- # "a?b:c" to "test(a,b,c)".
+ # "a?b:c" to "b if a else c".
expr = re.compile(r'(.*?)\?(.*?):(.*)')
def repl(x):
return "(%s if %s else %s)" % (x.group(2), x.group(1),
More information about the Python-checkins
mailing list