| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,7 +81,7 @@ def c2py(plural): | |||
| 81 | 81 | plural = expr.sub(' not \\1', plural) | |
| 82 | 82 | ||
| 83 | 83 | # Regular expression and replacement function used to transform | |
| 84 | - # "a?b:c" to "test(a,b,c)". | ||
| 84 | + # "a?b:c" to "b if a else c". | ||
| 85 | 85 | expr = re.compile(r'(.*?)\?(.*?):(.*)') | |
| 86 | 86 | def repl(x): | |
| 87 | 87 | return "(%s if %s else %s)" % (x.group(2), x.group(1), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments