Overview
Comment: | [core] code cleaning (pylint) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | rg |
Files: | files | file ages | folders |
SHA3-256: |
f1726135a3c491a1b277f724a8a28b97 |
User & Date: | olr on 2018-06-24 14:49:06 |
Other Links: | branch diff | manifest | tags |
Context
2018-06-24
| ||
15:48 | [core] code cleaning (pylint) check-in: e052fe4727 user: olr tags: core, rg | |
14:49 | [core] code cleaning (pylint) check-in: f1726135a3 user: olr tags: core, rg | |
14:16 | [core] code cleaning (pylint) check-in: 48056be413 user: olr tags: core, rg | |
Changes
Modified gc_core/py/__init__.py from [aeadedff14] to [49f46a05ff].
|
Modified gc_core/py/lang_core/gc_options.py from [871c8d4b8f] to [49f53da949].
|
Modified gc_core/py/lang_core/gc_rules.py from [3cf95f4a21] to [2ef08593b5].
|
Modified gc_core/py/lang_core/gc_rules_graph.py from [b99ba93b1b] to [373592f3fb].
|
Modified gc_core/py/text.py from [133d154e72] to [9c937ea8e6].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 | + + + + | #!python3 """ Text tools """ import textwrap from itertools import chain def getParagraph (sText): "generator: returns paragraphs of text" |
︙ |
Modified gc_lang/fr/modules/conj.py from [2a91e3ad80] to [0febaa97ab].
︙ | |||
295 296 297 298 299 300 301 302 303 304 305 306 307 308 | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | + | sInfo = "# erreur - code : " + self._sRawInfo return sGroup + " · " + sInfo except: traceback.print_exc() return "# erreur" def infinitif (self, bPro, bNeg, bTpsCo, bInt, bFem): "returns string (conjugaison à l’infinitif)" try: if bTpsCo: sInfi = self.sVerbAux if not bPro else "être" else: sInfi = self.sVerb if bPro: if self.bProWithEn: |
︙ | |||
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | + + | sInfi += " … ?" return sInfi except: traceback.print_exc() return "# erreur" def participePasse (self, sWho): "returns past participle according to <sWho>" try: return self.dConj[":Q"][sWho] except: traceback.print_exc() return "# erreur" def participePresent (self, bPro, bNeg, bTpsCo, bInt, bFem): "returns string (conjugaison du participe présent)" try: if not self.dConj[":P"][":"]: return "" if bTpsCo: sPartPre = _getConjWithTags(self.sVerbAux, self._tTagsAux, ":PQ", ":P") if not bPro else getConj("être", ":PQ", ":P") else: sPartPre = self.dConj[":P"][":"] |
︙ | |||
354 355 356 357 358 359 360 361 362 363 364 365 366 367 | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 | + | sPartPre += " … ?" return sPartPre except: traceback.print_exc() return "# erreur" def conjugue (self, sTemps, sWho, bPro, bNeg, bTpsCo, bInt, bFem): "returns string (conjugue le verbe au temps <sTemps> pour <sWho>) " try: if not self.dConj[sTemps][sWho]: return "" if not bTpsCo and bInt and sWho == ":1s" and self.dConj[sTemps].get(":1ś", False): sWho = ":1ś" if bTpsCo: sConj = _getConjWithTags(self.sVerbAux, self._tTagsAux, sTemps, sWho) if not bPro else getConj("être", sTemps, sWho) |
︙ | |||
376 377 378 379 380 381 382 | 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 | - + - + - + + | else: sConj = _dProObjEl[sWho] + "en " + sConj if bNeg: sConj = "n’" + sConj if bEli and not bPro else "ne " + sConj if bInt: if sWho == ":3s" and not _zNeedTeuph.search(sConj): sConj += "-t" |
︙ |
Modified gc_lang/fr/modules/tests.py from [2e6f413e05] to [c7e6c8b089].
1 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + + + + | #! python3 |
︙ |