Skip to content

Commit 4e81127

Browse files
committed
cleanup
1 parent 1f3fd79 commit 4e81127

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

default_gadgets.py

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ def extract_defaults(wikitext):
1414
match_lines = [default_re.match(line) for line in wikitext.split('\n')]
1515
return [m.group(1) for m in match_lines if m]
1616

17-
def getGadgets():
18-
families = ['wikipedia']
19-
site = pywikibot.getSite('en', 'wikipedia')
20-
gadgets_def = pywikibot.Page(site,'MediaWiki:Gadgets-definition')
21-
wikitext = gadgets_def.get()
22-
print(extract_defaults(wikitext))
23-
2417
def family_default_gadgets(family='wikipedia'):
2518
site = pywikibot.getSite('en', family)
2619
family_sites = [pywikibot.getSite(lang, family) for lang in site.languages()]

gadgets_popular.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
# (C) eranroz
44
#
5-
# Distributed under the terms of the MIT license.! /usr/bin/env python
5+
# Distributed under the terms of the MIT license.
66

77
import datetime
88
import MySQLdb

0 commit comments

Comments
 (0)