http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11667
Revision: 11667 Author: legoktm Date: 2013-06-18 19:58:27 +0000 (Tue, 18 Jun 2013) Log Message: ----------- Revert r11666, replace all uses of simplejson with default json module
Modified Paths: -------------- branches/rewrite/scripts/claimit.py branches/rewrite/scripts/harvest_template.py branches/rewrite/setup.py
Modified: branches/rewrite/scripts/claimit.py =================================================================== --- branches/rewrite/scripts/claimit.py 2013-06-18 08:32:38 UTC (rev 11666) +++ branches/rewrite/scripts/claimit.py 2013-06-18 19:58:27 UTC (rev 11667) @@ -14,7 +14,7 @@
Then list the property-->target pairs to add. """ -import simplejson +import json import pywikibot from pywikibot import pagegenerators
@@ -40,7 +40,7 @@ Get the source ''' page = pywikibot.Page(self.repo, 'Wikidata:List of wikis/python') - source_values = simplejson.loads(page.get()) + source_values = json.loads(page.get()) source_values = source_values['wikipedia'] for lang in source_values: source_values[lang] = pywikibot.ItemPage(self.repo, source_values[lang])
Modified: branches/rewrite/scripts/harvest_template.py =================================================================== --- branches/rewrite/scripts/harvest_template.py 2013-06-18 08:32:38 UTC (rev 11666) +++ branches/rewrite/scripts/harvest_template.py 2013-06-18 19:58:27 UTC (rev 11667) @@ -18,7 +18,7 @@
""" import re -import simplejson +import json import pywikibot from pywikibot import pagegenerators
@@ -47,7 +47,7 @@ Get the source ''' page = pywikibot.Page(self.repo, 'Wikidata:List of wikis/python') - source_values = simplejson.loads(page.get()) + source_values = json.loads(page.get()) source_values = source_values['wikipedia'] for lang in source_values: source_values[lang] = pywikibot.ItemPage(self.repo, source_values[lang])
Modified: branches/rewrite/setup.py =================================================================== --- branches/rewrite/setup.py 2013-06-18 08:32:38 UTC (rev 11666) +++ branches/rewrite/setup.py 2013-06-18 19:58:27 UTC (rev 11667) @@ -19,7 +19,7 @@ if sys.version_info[1] < 6: raise RuntimeError("ERROR: Pywikipediabot only runs under Python 2.6 or higher") else: - depend = ['httplib2>=0.6.0', 'simplejson'] + depend = ['httplib2>=0.6.0']
setup(name='Pywikipediabot', version='2.0alpha',