changeset 25999:1c75249e159b

style: adjust whitespaces in webutil.py Turns out, all this came from the single d605a82cf189.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 11 Aug 2015 13:19:42 +0800
parents a7527c5769bb
children 748053b4a66b
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Mon Aug 10 15:30:28 2015 -0500
+++ b/mercurial/hgweb/webutil.py	Tue Aug 11 13:19:42 2015 +0800
@@ -203,7 +203,7 @@
     path = path.lstrip('/')
     return pathutil.canonpath(repo.root, '', path)
 
-def changeidctx (repo, changeid):
+def changeidctx(repo, changeid):
     try:
         ctx = repo[changeid]
     except error.RepoError:
@@ -212,11 +212,11 @@
 
     return ctx
 
-def changectx (repo, req):
+def changectx(repo, req):
     changeid = "tip"
     if 'node' in req.form:
         changeid = req.form['node'][0]
-        ipos=changeid.find(':')
+        ipos = changeid.find(':')
         if ipos != -1:
             changeid = changeid[(ipos + 1):]
     elif 'manifest' in req.form:
@@ -227,7 +227,7 @@
 def basechangectx(repo, req):
     if 'node' in req.form:
         changeid = req.form['node'][0]
-        ipos=changeid.find(':')
+        ipos = changeid.find(':')
         if ipos != -1:
             changeid = changeid[:ipos]
             return changeidctx(repo, changeid)