From: Guido van Rossum Date: Mon, 22 Feb 1999 15:19:47 +0000 (+0000) Subject: Dang. Even though this is obsolete code, somebody found a bug, and I X-Git-Tag: v1.5.2c1~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11a8d0b684f86edb2760020371b53dc9377a9dbd;p=thirdparty%2FPython%2Fcpython.git Dang. Even though this is obsolete code, somebody found a bug, and I fix it. Oh well. --- diff --git a/Lib/lib-old/poly.py b/Lib/lib-old/poly.py index 57bd2032d4cf..f89bd1428729 100644 --- a/Lib/lib-old/poly.py +++ b/Lib/lib-old/poly.py @@ -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 []