mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
update comment
This commit is contained in:
@@ -81,7 +81,7 @@ def c2py(plural):
|
||||
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),
|
||||
|
||||
Reference in New Issue
Block a user