http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11078
Revision: 11078 Author: xqt Date: 2013-02-15 08:09:48 +0000 (Fri, 15 Feb 2013) Log Message: ----------- some PEP8
Modified Paths: -------------- trunk/pywikipedia/maintenance/family_check.py
Modified: trunk/pywikipedia/maintenance/family_check.py =================================================================== --- trunk/pywikipedia/maintenance/family_check.py 2013-02-15 07:57:08 UTC (rev 11077) +++ trunk/pywikipedia/maintenance/family_check.py 2013-02-15 08:09:48 UTC (rev 11078) @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # -# (C) xqt, 2011 -# (C) Pywikipedia bot team, 2003-2007 +# (C) xqt, 2011, 2013 +# (C) Pywikipedia bot team, 2003-2009 # # Distributed under the terms of the MIT license. # @@ -30,8 +30,8 @@ try: default_namespace = site.family.namespaces[ns]['_default'] except KeyError: - wikipedia.output(u'Warning! %s has no _default for namespace %s' % - (site, ns)) + wikipedia.output(u'Warning! %s has no _default for namespace %s' + % (site, ns))
if default_namespace: if isinstance(default_namespace, basestring): @@ -40,8 +40,8 @@ try: defined_namespace = site.family.namespaces[ns][site.lang] except KeyError: - wikipedia.output(u'Warning! %s has only _default for namespace %s' % - (site, ns)) + wikipedia.output(u'Warning! %s has only _default for namespace ' + u'%s' % (site, ns)) defined_namespace = default_namespace[:] else: if isinstance(defined_namespace, basestring): @@ -70,7 +70,7 @@ except KeyError: pass else: - if not namespace['*'] in default:# and \ + if not namespace['*'] in default: if namespace['*'] in alias[1]: raise else:
pywikipedia-svn@lists.wikimedia.org