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

Skip to content

Commit 2e7296e

Browse files
committed
Allow --branch master
1 parent 3638446 commit 2e7296e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build_docs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ def parse_args():
433433
"-b",
434434
"--branch",
435435
metavar="3.6",
436-
type=float,
437436
help="Version to build (defaults to all maintained branches).",
438437
)
439438
parser.add_argument(
@@ -514,7 +513,11 @@ def main():
514513
logging.root.setLevel(logging.DEBUG)
515514
venv = os.path.join(args.build_root, "venv")
516515
if args.branch:
517-
branches_to_do = [(args.branch, str(args.branch), args.devel)]
516+
branches_to_do = [
517+
branch
518+
for branch in BRANCHES
519+
if str(branch[0]) == args.branch or branch[1] == args.branch
520+
]
518521
else:
519522
branches_to_do = BRANCHES
520523
if not args.languages:

0 commit comments

Comments
 (0)