1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -15,7 +15,7 @@
#
# Implementation notes
# --------------------
#
#
# it is quite koumbit-specific:
# 1. the wikifarm config is hardcoded
# 2. it relies on the "wikilist.py" file to contain the list of wiki -> url patterns
@ -81,18 +81,18 @@ def main():
url = sub('\(([^\|]*)(\|[^\)]*\))+', '\\1', url)
# remove common regexp patterns and slap a protocol to make this a real url
url = sub('[\^\$]|(\.\*)', '', url)
mod = getattr(__import__(name), 'Config')
#print "Upgradeing wiki %s (%s)" % (getattr(mod, 'sitename'), url)
request = RequestCLI(url)
pagelist = request.rootpage.getPageList(user='')
systemPages = [page for page in pagelist
if wikiutil.isSystemPage(request, page)]
print(name + '.value ' + str(len(pagelist)-len(systemPages)))
#totalsize = reduce(operator.add, [Page(request, name).size() for name in pagelist])
#print('Accumulated page sizes' + _formatInReadableUnits(totalsize))
#print('Accumulated page sizes' + _formatInReadableUnits(totalsize))
def config():
print("""graph_title Wiki size