diff 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
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Dec 09 23:33:16 2012 +0100
+++ b/mercurial/patch.py	Sun Dec 09 23:33:16 2012 +0100
@@ -1007,7 +1007,7 @@
 
             bot = min(fuzz, bot)
             top = min(fuzz, top)
-            return old[top:len(old)-bot], new[top:len(new)-bot], top
+            return old[top:len(old) - bot], new[top:len(new) - bot], top
         return old, new, 0
 
     def fuzzit(self, fuzz, toponly):