Commit 4e81127 1 parent 1f3fd79 commit 4e81127 Copy full SHA for 4e81127
File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ def extract_defaults(wikitext):
14
14
match_lines = [default_re .match (line ) for line in wikitext .split ('\n ' )]
15
15
return [m .group (1 ) for m in match_lines if m ]
16
16
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
-
24
17
def family_default_gadgets (family = 'wikipedia' ):
25
18
site = pywikibot .getSite ('en' , family )
26
19
family_sites = [pywikibot .getSite (lang , family ) for lang in site .languages ()]
Original file line number Diff line number Diff line change 2
2
# -*- coding: utf-8 -*-
3
3
# (C) eranroz
4
4
#
5
- # Distributed under the terms of the MIT license.! /usr/bin/env python
5
+ # Distributed under the terms of the MIT license.
6
6
7
7
import datetime
8
8
import MySQLdb
You can’t perform that action at this time.
0 commit comments