http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11637
Revision: 11637 Author: legoktm Date: 2013-06-10 20:12:38 +0000 (Mon, 10 Jun 2013) Log Message: ----------- Minor PEP8 and whitespace fixes
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-06-10 20:09:17 UTC (rev 11636) +++ branches/rewrite/pywikibot/site.py 2013-06-10 20:12:38 UTC (rev 11637) @@ -76,7 +76,7 @@ @return: a Family instance configured for the named family.
""" - if fam == None: + if fam is None: fam = config.family try: # first try the built-in families @@ -87,13 +87,13 @@ # next see if user has defined a local family module try: sys.path.append(config.datafilepath('families')) - myfamily = __import__("%s_family" % fam) + myfamily = __import__("%s_family" % fam) except ImportError: if fatal: pywikibot.error(u"""\ Error importing the %s family. This probably means the family does not exist. Also check your configuration file.""" - % fam, exc_info=True) + % fam, exc_info=True) sys.exit(1) else: raise Error("Family %s does not exist" % fam) @@ -3464,7 +3464,7 @@ statement=claim.snak, ) if bot: - params['bot'] = 1 + params['bot'] = 1 params['token'] = self.token(claim, 'edit') if not new and hasattr(source, 'hash'): params['reference'] = source.hash