Kaydet (Commit) 11a8d0b6 authored tarafından Guido van Rossum's avatar Guido van Rossum

Dang. Even though this is obsolete code, somebody found a bug, and I

fix it.  Oh well.
üst 9226d8e8
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
def normalize(p): # Strip unnecessary zero coefficients def normalize(p): # Strip unnecessary zero coefficients
n = len(p) n = len(p)
while p: while n:
if p[n-1]: return p[:n] if p[n-1]: return p[:n]
n = n-1 n = n-1
return [] return []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment