Revision: 3934 Author: valhallasw Date: 2007-08-01 19:53:05 +0000 (Wed, 01 Aug 2007)
Log Message: ----------- Changed Site('de', 'wikipedia') comparison to 'wikipedia:de'. The latter is fine with wikipedia_family.py missing, the first is not.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-01 16:37:37 UTC (rev 3933) +++ trunk/pywikipedia/wikipedia.py 2007-08-01 19:53:05 UTC (rev 3934) @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- """ Library to get and put pages on a MediaWiki.
@@ -2850,7 +2850,7 @@
if site is None: site = getSite() - if site == Site('de', 'wikipedia'): + if site.sitename() == 'wikipedia:de': raise Error('The PyWikipediaBot is no longer allowed to touch categories on the German Wikipedia. See http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv2#Position...')
s = categoryFormat(new, insite = site)