diff mercurial/pure/mpatch.py @ 10282:08a0f04b56bd

many, many trivial check-code fixups
author Matt Mackall <mpm@selenic.com>
date Mon, 25 Jan 2010 00:05:27 -0600
parents 25e572394f5c
children 2114e44b08f6
line wrap: on
line diff
--- a/mercurial/pure/mpatch.py	Mon Jan 25 00:05:22 2010 -0600
+++ b/mercurial/pure/mpatch.py	Mon Jan 25 00:05:27 2010 -0600
@@ -22,7 +22,8 @@
 # temporary string buffers.
 
 def patches(a, bins):
-    if not bins: return a
+    if not bins:
+        return a
 
     plens = [len(x) for x in bins]
     pl = sum(plens)
@@ -30,7 +31,8 @@
     tl = bl + bl + pl # enough for the patches and two working texts
     b1, b2 = 0, bl
 
-    if not tl: return a
+    if not tl:
+        return a
 
     m = StringIO()
     def move(dest, src, count):