Skip to content
Permalink
Browse files

pageContent = pageContent.replace(u'{{S|class|', u'{{S|classificateur|')

  • Loading branch information...
JackPotte committed Aug 11, 2018
1 parent 4ff278f commit 5b0c0f867815f6d8388779515203bf9dab2d4be1
Showing with 5 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 README.md
  3. +2 −1 src/fr.wiktionary.format.py
@@ -24,3 +24,4 @@ user-*.py
/nbproject/project.xml
/nbproject/private/
dumps/
core/
@@ -16,5 +16,5 @@ please at least avoid any line larger than 150 characters, to allow a quick revi
* pip install regex
* pip install requests
* To accelerate the treatments:
* modify throttle.py:254 with time.sleep(0).
* and user-config.py:186
* vim user-config.py:186
* vim core/pywikibot/throttle.py:254, time.sleep(0).
@@ -1748,6 +1748,7 @@ def treatPageByName(pageName):
pageContent = pageContent.replace(u'{{S|adjectifs|', u'{{S|adjectif|')
pageContent = pageContent.replace(u'{{S|adj-num|', u'{{S|adjectif numéral|')
pageContent = pageContent.replace(u'{{S|adv|', u'{{S|adverbe|')
pageContent = pageContent.replace(u'{{S|class|', u'{{S|classificateur|')
pageContent = pageContent.replace(u'{{S|drv}}', u'{{S|dérivés}}')
pageContent = pageContent.replace(u'{{S|homo|', u'{{S|homophones|')
pageContent = pageContent.replace(u'{{S|homo}}', u'{{S|homophones}}')
@@ -3966,7 +3967,7 @@ def main(*args):
treatPageByName(u'User:' + username + u'/test unitaire')
elif sys.argv[1] == u'-page' or sys.argv[1] == u'-p':
waitAfterHumans = False
treatPageByName(u'-obo')
treatPageByName(u'')
elif sys.argv[1] == u'-file' or sys.argv[1] == u'-txt':
waitAfterHumans = False
p.pagesByFile(u'src/lists/articles_' + siteLanguage + u'_' + siteFamily + u'.txt', )

0 comments on commit 5b0c0f8

Please sign in to comment.
You can’t perform that action at this time.