Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 18054:b35e3364f94a
check-code: there must also be whitespace between ')' and operator
The check pattern only checked for whitespace between keyword and operator.
Now it also warns:
> x = f(),7
missing whitespace after ,
> x = f()+7
missing whitespace in expression
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 09 Dec 2012 23:33:16 +0100 |
parents | f3991bcf4f0f |
children | e411fd79ca69 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Dec 09 23:33:16 2012 +0100 +++ b/mercurial/localrepo.py Sun Dec 09 23:33:16 2012 +0100 @@ -2655,7 +2655,7 @@ fp.write(text) finally: fp.close() - return self.pathto(fp.name[len(self.root)+1:]) + return self.pathto(fp.name[len(self.root) + 1:]) # used to avoid circular references so destructors work def aftertrans(files):