comparison mercurial/patch.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 a9f4a6076740
children 242d2f4ec01c
comparison
equal deleted inserted replaced
18053:0c2f0048125d 18054:b35e3364f94a
1005 else: 1005 else:
1006 break 1006 break
1007 1007
1008 bot = min(fuzz, bot) 1008 bot = min(fuzz, bot)
1009 top = min(fuzz, top) 1009 top = min(fuzz, top)
1010 return old[top:len(old)-bot], new[top:len(new)-bot], top 1010 return old[top:len(old) - bot], new[top:len(new) - bot], top
1011 return old, new, 0 1011 return old, new, 0
1012 1012
1013 def fuzzit(self, fuzz, toponly): 1013 def fuzzit(self, fuzz, toponly):
1014 old, new, top = self._fuzzit(self.a, self.b, fuzz, toponly) 1014 old, new, top = self._fuzzit(self.a, self.b, fuzz, toponly)
1015 oldstart = self.starta + top 1015 oldstart = self.starta + top