<source> is obsolete See T237267, but in pywikibot are still only source keywords eg.
exceptions = ['comment', 'math', 'nowiki', 'pre', 'startspace',
'source', 'table']<source> is obsolete See T237267, but in pywikibot are still only source keywords eg.
exceptions = ['comment', 'math', 'nowiki', 'pre', 'startspace',
'source', 'table']| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [IMPR] replace 'source' exception regex with 'syntaxhighlight' | pywikibot/core | master | +51 -44 |
We should consider backward compatibility both for code and for older MediaWikis, and maybe waiting for T251116. Removing SyntaxHighlight as this task requires no change to the extension.
Really? I found this word only in 4 files.
And what about exceptions in cosmetic_changes.py as stated above?
Pywikibot uses syntaxhighlight as alias for source.
Yes I am. See textlib.py line 342+ and the corresponding textlib.replaceexept https://codesearch.wmcloud.org/pywikibot/?q=syntaxhighlight&i=nope&files=&repos=
Probably we can change the usage vice versa but waiting for T251116 is appropriate then.
Change 636004 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] replace 'source' exception regex with 'syntaxhighlight'
Change 636004 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] replace 'source' exception regex with 'syntaxhighlight'