mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Dang. Even though this is obsolete code, somebody found a bug, and I
fix it. Oh well.
This commit is contained in:
parent
9226d8e8a8
commit
11a8d0b684
1 changed files with 1 additions and 1 deletions
|
@ -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 []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue