Differences From Artifact [a8d17c5bd5]:
- File gc_lang/fr/modules/textformatter.py — part of check-in [a85f64f6f8] at 2019-05-10 20:52:12 on branch trunk — [graphspell][core][fr] code cleaning (pylint) (user: olr, size: 14475) [annotate] [blame] [check-ins using]
To Artifact [e20bd3ea84]:
- File gc_lang/fr/modules/textformatter.py — part of check-in [16611cf664] at 2019-05-11 18:50:40 on branch trunk — [core][fr] code cleaning (pylint) (user: olr, size: 14508) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
249 250 251 252 253 254 255 256 257 258 259 260 |
def __init__ (self):
for sOpt, lTup in dReplTable.items():
for i, t in enumerate(lTup):
lTup[i] = (re.compile(t[0]), t[1])
def formatText (self, sText):
for sOptName, bVal in lOptRepl:
if bVal:
for zRgx, sRep in dReplTable[sOptName]:
sText = zRgx.sub(sRep, sText)
return sText
| > | 249 250 251 252 253 254 255 256 257 258 259 260 261 |
def __init__ (self):
for sOpt, lTup in dReplTable.items():
for i, t in enumerate(lTup):
lTup[i] = (re.compile(t[0]), t[1])
def formatText (self, sText):
"returns formatted text"
for sOptName, bVal in lOptRepl:
if bVal:
for zRgx, sRep in dReplTable[sOptName]:
sText = zRgx.sub(sRep, sText)
return sText
|