]> granicus.if.org Git - python/commitdiff
Fix indentation of Python code example in C comment.
authorMark Dickinson <dickinsm@gmail.com>
Fri, 25 Jun 2010 20:19:48 +0000 (20:19 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 25 Jun 2010 20:19:48 +0000 (20:19 +0000)
Modules/mathmodule.c

index b3b80f4787e460eb0e7fbfb7c01a59a043d80a12..cd74b0dc677465be3fb8efb56d8a5df20acca6a1 100644 (file)
@@ -934,17 +934,17 @@ _fsum_realloc(double **p_ptr, Py_ssize_t  n,
    def msum(iterable):
        partials = []  # sorted, non-overlapping partial sums
        for x in iterable:
-       i = 0
-       for y in partials:
-           if abs(x) < abs(y):
-           x, y = y, x
-           hi = x + y
-           lo = y - (hi - x)
-           if lo:
-           partials[i] = lo
-           i += 1
-           x = hi
-       partials[i:] = [x]
+           i = 0
+           for y in partials:
+               if abs(x) < abs(y):
+                   x, y = y, x
+               hi = x + y
+               lo = y - (hi - x)
+               if lo:
+                   partials[i] = lo
+                   i += 1
+               x = hi
+           partials[i:] = [x]
        return sum_exact(partials)
 
    Rounded x+y stored in hi with the roundoff stored in lo.  Together hi+lo