changeset 9198:061eeb602354

coding style: use a space after comma I left a cases like 'lambda x,y:' alone -- the lack of a space does not bother me as much when the variables are single letters.
author Martin Geisler <mg@lazybytes.net>
date Wed, 22 Jul 2009 23:12:54 +0200
parents a05aa192a00a
children fb5562afc263
files hgext/graphlog.py hgext/mq.py mercurial/bundlerepo.py mercurial/commands.py mercurial/hgweb/protocol.py mercurial/hgweb/webcommands.py mercurial/sshserver.py mercurial/verify.py mercurial/win32.py
diffstat 9 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/graphlog.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/hgext/graphlog.py	Wed Jul 22 23:12:54 2009 +0200
@@ -95,7 +95,7 @@
         else:
             nodeline[2 * end] = "+"
             if start > end:
-                (start, end) = (end,start)
+                (start, end) = (end, start)
             for i in range(2 * start + 1, 2 * end):
                 if nodeline[i] != "+":
                     nodeline[i] = "-"
--- a/hgext/mq.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/hgext/mq.py	Wed Jul 22 23:12:54 2009 +0200
@@ -1850,7 +1850,7 @@
                      summary=opts.get('summary'))
 
 def setupheaderopts(ui, opts):
-    def do(opt,val):
+    def do(opt, val):
         if not opts[opt] and opts['current' + opt]:
             opts[opt] = val
     do('user', ui.username())
--- a/mercurial/bundlerepo.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/bundlerepo.py	Wed Jul 22 23:12:54 2009 +0200
@@ -160,7 +160,7 @@
             localrepo.localrepository.__init__(self, ui, path)
         except error.RepoError:
             self._tempparent = tempfile.mkdtemp()
-            localrepo.instance(ui,self._tempparent,1)
+            localrepo.instance(ui, self._tempparent, 1)
             localrepo.localrepository.__init__(self, ui, self._tempparent)
 
         if path:
--- a/mercurial/commands.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/commands.py	Wed Jul 22 23:12:54 2009 +0200
@@ -663,9 +663,9 @@
         ui.status(_('created new head\n'))
 
     if ui.debugflag:
-        ui.write(_('committed changeset %d:%s\n') % (rev,hex(node)))
+        ui.write(_('committed changeset %d:%s\n') % (rev, hex(node)))
     elif ui.verbose:
-        ui.write(_('committed changeset %d:%s\n') % (rev,short(node)))
+        ui.write(_('committed changeset %d:%s\n') % (rev, short(node)))
 
 def copy(ui, repo, *pats, **opts):
     """mark files as copied for the next commit
--- a/mercurial/hgweb/protocol.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/hgweb/protocol.py	Wed Jul 22 23:12:54 2009 +0200
@@ -26,7 +26,7 @@
     try:
         r = hex(repo.lookup(req.form['key'][0]))
         success = 1
-    except Exception,inst:
+    except Exception, inst:
         r = str(inst)
         success = 0
     resp = "%s %s\n" % (success, r)
--- a/mercurial/hgweb/webcommands.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/hgweb/webcommands.py	Wed Jul 22 23:12:54 2009 +0200
@@ -339,7 +339,7 @@
     i.reverse()
     parity = paritygen(web.stripecount)
 
-    def entries(notip=False,limit=0, **map):
+    def entries(notip=False, limit=0, **map):
         count = 0
         for k, n in i:
             if notip and k == "tip":
--- a/mercurial/sshserver.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/sshserver.py	Wed Jul 22 23:12:54 2009 +0200
@@ -59,7 +59,7 @@
         try:
             r = hex(self.repo.lookup(key))
             success = 1
-        except Exception,inst:
+        except Exception, inst:
             r = str(inst)
             success = 0
         self.respond("%s %s\n" % (success, r))
--- a/mercurial/verify.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/verify.py	Wed Jul 22 23:12:54 2009 +0200
@@ -78,7 +78,7 @@
                 msg = _("rev %d points to unexpected changeset %d")
             err(None, msg % (i, lr), f)
             if linkrevs:
-                warn(_(" (expected %s)") % " ".join(map(str,linkrevs)))
+                warn(_(" (expected %s)") % " ".join(map(str, linkrevs)))
             lr = None # can't be trusted
 
         try:
--- a/mercurial/win32.py	Wed Jul 22 23:08:32 2009 +0200
+++ b/mercurial/win32.py	Wed Jul 22 23:12:54 2009 +0200
@@ -18,7 +18,7 @@
 import errno, os, sys, pywintypes, win32con, win32file, win32process
 import winerror
 import osutil, encoding
-from win32com.shell import shell,shellcon
+from win32com.shell import shell, shellcon
 
 def os_link(src, dst):
     try: