changeset 34486:a57c938e7ac8

style: never use a space before a colon or comma Differential Revision: https://phab.mercurial-scm.org/D954
author Alex Gaynor <agaynor@mozilla.com>
date Fri, 29 Sep 2017 15:48:34 +0000
parents 37b7581e5737
children 323bed58cf57
files mercurial/color.py mercurial/commandserver.py mercurial/dispatch.py mercurial/hgweb/hgwebdir_mod.py mercurial/hgweb/wsgicgi.py mercurial/httppeer.py mercurial/merge.py mercurial/progress.py
diffstat 8 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/color.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/color.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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',
--- a/mercurial/commandserver.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/commandserver.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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))
--- a/mercurial/dispatch.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/dispatch.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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
 
--- a/mercurial/hgweb/wsgicgi.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/hgweb/wsgicgi.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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)()
--- a/mercurial/httppeer.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/httppeer.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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.
 
--- a/mercurial/merge.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/merge.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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")
--- a/mercurial/progress.py	Mon Oct 02 19:25:11 2017 -0700
+++ b/mercurial/progress.py	Fri Sep 29 15:48:34 2017 +0000
@@ -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)