# HG changeset patch # User Martin Geisler # Date 1248297174 -7200 # Node ID 061eeb602354616cffb061cb2ea779cbeb7f0f96 # Parent a05aa192a00ac4291f4679a884dd64e31eee220c 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. diff -r a05aa192a00a -r 061eeb602354 hgext/graphlog.py --- 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] = "-" diff -r a05aa192a00a -r 061eeb602354 hgext/mq.py --- 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()) diff -r a05aa192a00a -r 061eeb602354 mercurial/bundlerepo.py --- 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: diff -r a05aa192a00a -r 061eeb602354 mercurial/commands.py --- 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 diff -r a05aa192a00a -r 061eeb602354 mercurial/hgweb/protocol.py --- 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) diff -r a05aa192a00a -r 061eeb602354 mercurial/hgweb/webcommands.py --- 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": diff -r a05aa192a00a -r 061eeb602354 mercurial/sshserver.py --- 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)) diff -r a05aa192a00a -r 061eeb602354 mercurial/verify.py --- 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: diff -r a05aa192a00a -r 061eeb602354 mercurial/win32.py --- 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: