]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Dang. Even though this is obsolete code, somebody found a bug, and I
authorGuido van Rossum <guido@python.org>
Mon, 22 Feb 1999 15:19:47 +0000 (15:19 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Feb 1999 15:19:47 +0000 (15:19 +0000)
fix it.  Oh well.

Lib/lib-old/poly.py

index 57bd2032d4cf2851a5e959a3d4fbfc9f3b6beeca..f89bd1428729f08c9b7a06a72e2343381423d104 100644 (file)
@@ -7,7 +7,7 @@
 
 def normalize(p): # Strip unnecessary zero coefficients
        n = len(p)
-       while p:
+       while n:
                if p[n-1]: return p[:n]
                n = n-1
        return []