summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-22 15:19:47 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-22 15:19:47 (GMT)
commit11a8d0b684f86edb2760020371b53dc9377a9dbd (patch)
treee6383fd08f786fd34cbf89b43d4778bc618e0e86 /Lib
parent9226d8e8a86abbb3733a5aa88f7994ef6516aa87 (diff)
downloadcpython-11a8d0b684f86edb2760020371b53dc9377a9dbd.zip
cpython-11a8d0b684f86edb2760020371b53dc9377a9dbd.tar.gz
cpython-11a8d0b684f86edb2760020371b53dc9377a9dbd.tar.bz2
Dang. Even though this is obsolete code, somebody found a bug, and I
fix it. Oh well.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-old/poly.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-old/poly.py b/Lib/lib-old/poly.py
index 57bd203..f89bd14 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 []