diff --git a/mercurial/color.py b/mercurial/color.py --- a/mercurial/color.py +++ b/mercurial/color.py @@ -95,9 +95,9 @@ 'diff.inserted': 'green', 'diff.tab': '', 'diff.trailingwhitespace': 'bold red_background', - 'changeset.public' : '', - 'changeset.draft' : '', - 'changeset.secret' : '', + 'changeset.public': '', + 'changeset.draft': '', + 'changeset.secret': '', 'diffstat.deleted': 'red', 'diffstat.inserted': 'green', 'histedit.remaining': 'red bold', diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py --- a/mercurial/commandserver.py +++ b/mercurial/commandserver.py @@ -272,8 +272,8 @@ return cmd != '' - capabilities = {'runcommand' : runcommand, - 'getencoding' : getencoding} + capabilities = {'runcommand': runcommand, + 'getencoding': getencoding} def serve(self): hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities)) diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -243,10 +243,10 @@ try: debugger = 'pdb' debugtrace = { - 'pdb' : pdb.set_trace + 'pdb': pdb.set_trace } debugmortem = { - 'pdb' : pdb.post_mortem + 'pdb': pdb.post_mortem } # read --config before doing anything else diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -320,7 +320,7 @@ for typ, spec in hgweb_mod.archivespecs.iteritems(): if typ in allowed or ui.configbool("web", "allow" + typ, untrusted=True): - archives.append({"type" : typ, "extension": spec[2], + archives.append({"type": typ, "extension": spec[2], "node": nodeid, "url": url}) return archives diff --git a/mercurial/hgweb/wsgicgi.py b/mercurial/hgweb/wsgicgi.py --- a/mercurial/hgweb/wsgicgi.py +++ b/mercurial/hgweb/wsgicgi.py @@ -87,4 +87,4 @@ if not headers_sent: write('') # send headers now if body was empty finally: - getattr(content, 'close', lambda : None)() + getattr(content, 'close', lambda: None)() diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -151,7 +151,7 @@ if urlopener: for h in urlopener.handlers: h.close() - getattr(h, "close_all", lambda : None)() + getattr(h, "close_all", lambda: None)() # Begin of _basepeer interface. diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -419,7 +419,7 @@ fca.path(), hex(fca.filenode()), fco.path(), hex(fco.filenode()), fcl.flags()] - self._stateextras[fd] = { 'ancestorlinknode' : hex(fca.node()) } + self._stateextras[fd] = {'ancestorlinknode': hex(fca.node())} self._dirty = True def __contains__(self, dfile): @@ -864,7 +864,7 @@ fla = ma.flags(f) nol = 'l' not in fl1 + fl2 + fla if n2 == a and fl2 == fla: - actions[f] = ('k' , (), "remote unchanged") + actions[f] = ('k', (), "remote unchanged") elif n1 == a and fl1 == fla: # local unchanged - use remote if n1 == n2: # optimization: keep local content actions[f] = ('e', (fl2,), "update permissions") diff --git a/mercurial/progress.py b/mercurial/progress.py --- a/mercurial/progress.py +++ b/mercurial/progress.py @@ -174,7 +174,7 @@ amt -= progwidth bar = (' ' * int(progwidth - abs(amt)) + '<=>' + ' ' * int(abs(amt))) - prog = ''.join(('[', bar , ']')) + prog = ''.join(('[', bar, ']')) out = spacejoin(head, prog, tail) else: out = spacejoin(head, tail)