some fixes

(automatic submodule update by svn2git)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10757
update namespace alias for bk-wikisource

https://mediawiki.org/wiki/Special:Code/pywikipedia/10758
Localisation updates from http://translatewiki.net.

(automatic submodule update by svn2git)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10759
Remove superfluous newlines.

(automatic submodule update by svn2git)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10760
add bot script "SubsterBot" used in dewiki, enwiki, nlwiki, meta, ...
(includes ALL bot scripts and ALL third-party libraries BUT NO TS tools)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10761
follow-up; to r10761 because svn:keywords were missing

https://mediawiki.org/wiki/Special:Code/pywikipedia/10762
follow-up; to r10761 in order to unlink the code from DrTrigonBot framework (dtbext)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10763
Bugfix for r10752

Do not import pywikibot from files that may be imported from wikipedia.py,
as pywikibot is only fully populated *after* wikipedia.py has been fully
imported...

Test case: mylang = family = 'commons'
>>> import wikipedia
Traceback (most recent call last):
  File "/home/project/d/e/l/delinker/cdh/delinker.py", line 5, in <module>
    import wikipedia, config
  File "/home/project/d/e/l/delinker/cdh/wikipedia.py", line 8346, in <module>
    getSite(noLogin=True)
  File "/home/project/d/e/l/delinker/cdh/pywikibot/support.py", line 115, in wrapper
    return method(*__args, **__kw)
  File "/home/project/d/e/l/delinker/cdh/wikipedia.py", line 8106, in getSite
    _sites[key] = Site(code=code, fam=fam, user=user)
  File "/home/project/d/e/l/delinker/cdh/pywikibot/support.py", line 115, in wrapper
    return method(*__args, **__kw)
  File "/home/project/d/e/l/delinker/cdh/wikipedia.py", line 5356, in __init__
    if self.__code not in self.languages():
  File "/home/project/d/e/l/delinker/cdh/wikipedia.py", line 5471, in languages
    return self.family.iwkeys
  File "/home/project/d/e/l/delinker/cdh/family.py", line 3851, in iwkeys
    return pywikibot.Family(self.interwiki_forward).langs.keys()
AttributeError: 'module' object has no attribute 'Family'


https://mediawiki.org/wiki/Special:Code/pywikipedia/10764
strip trailing whitespace

https://mediawiki.org/wiki/Special:Code/pywikipedia/10765
strip trailing whitespace, some PEP8

https://mediawiki.org/wiki/Special:Code/pywikipedia/10766
mw 1.21wmf5

https://mediawiki.org/wiki/Special:Code/pywikipedia/10767
Page.comment() method added.
Page edit restriction will raise if the last comment contents the bots username. In most cases the previous edit was reverted.

https://mediawiki.org/wiki/Special:Code/pywikipedia/10769
update language_by_size

https://mediawiki.org/wiki/Special:Code/pywikipedia/10770
Localisation updates from http://translatewiki.net.

(automatic submodule update by svn2git)

https://mediawiki.org/wiki/Special:Code/pywikipedia/10772
L10N for hy-wiki, bug #3594224

https://mediawiki.org/wiki/Special:Code/pywikipedia/10773
New functionality for bot restriction templates "bots" and "nobots".
"nobots" may have a parameter either a script name or a bots username.
{{nobots|interwiki}} denies all bots using interwiki.py 
{{nobots|botname}} is equal to {{bots|deny=botname}}
{{nobots|all}} is equal to {{nobots}} and prohibits all bot edits.

"bots" has two new parameter "allowscript" and "denyscript". Guess what it does.

https://mediawiki.org/wiki/Special:Code/pywikipedia/10774
follow up for r10774, update from rewrite

https://mediawiki.org/wiki/Special:Code/pywikipedia/10776
use staticmethod decorator, shorten pagegenerators, enable keyboardinterrupt,
use defaultNamespace for creating template page

https://mediawiki.org/wiki/Special:Code/pywikipedia/10777
Finally problem of wikidata is solved and fixing of my previous commits

https://mediawiki.org/wiki/Special:Code/pywikipedia/10779
wikidata as a shared repository for wikipedia_family.py, update from rewrite r10783

https://mediawiki.org/wiki/Special:Code/pywikipedia/10784