Skip to content
Prev Previous commit
Next Next commit
Revert cosmetic change in docstring
  • Loading branch information
tzabal committed Apr 19, 2020
commit 49def61e93e0468e35afc104ed36ad262818f4d5
4 changes: 2 additions & 2 deletions Lib/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ def _convert(value, T):


def _find_lteq(a, x):
"""Locate the leftmost value exactly equal to x"""
'Locate the leftmost value exactly equal to x'
i = bisect_left(a, x)
if i != len(a) and a[i] == x:
return i
raise ValueError


def _find_rteq(a, l, x):
"""Locate the rightmost value exactly equal to x"""
'Locate the rightmost value exactly equal to x'
i = bisect_right(a, x, lo=l)
if i != (len(a)+1) and a[i-1] == x:
return i-1
Expand Down