Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0263ea1

Browse files
committed
FIX: Choose the right translation branch when it exists.
1 parent f8cee09 commit 0263ea1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_docs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
"""
3333

34-
from bisect import bisect
34+
from bisect import bisect_left as bisect
3535
import filecmp
3636
import logging
3737
import os
@@ -206,6 +206,8 @@ def locate_nearest_version(available_versions, target_version):
206206
'2.7'
207207
>>> locate_nearest_version(["2.7", "3.6", "3.7", "3.8"], "3.10")
208208
'3.8'
209+
>>> locate_nearest_version(["2.7", "3.6", "3.7", "3.8"], "3.7")
210+
'3.7'
209211
"""
210212

211213
def version_to_tuple(version):

0 commit comments

Comments
 (0)