mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Remove a redundant check from list_slice() and list_ass_slice().
Noted by Greg Stein.
This commit is contained in:
parent
d832f9e425
commit
2ccaf6f2f9
1 changed files with 0 additions and 4 deletions
|
@ -326,8 +326,6 @@ list_slice(a, ilow, ihigh)
|
|||
ilow = 0;
|
||||
else if (ilow > a->ob_size)
|
||||
ilow = a->ob_size;
|
||||
if (ihigh < 0)
|
||||
ihigh = 0;
|
||||
if (ihigh < ilow)
|
||||
ihigh = ilow;
|
||||
else if (ihigh > a->ob_size)
|
||||
|
@ -452,8 +450,6 @@ list_ass_slice(a, ilow, ihigh, v)
|
|||
ilow = 0;
|
||||
else if (ilow > a->ob_size)
|
||||
ilow = a->ob_size;
|
||||
if (ihigh < 0)
|
||||
ihigh = 0;
|
||||
if (ihigh < ilow)
|
||||
ihigh = ilow;
|
||||
else if (ihigh > a->ob_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue