File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525
2626def add (* , issue : str | None = None , section : str | None = None ):
27- """Add a blurb (a Misc/NEWS.d/next entry) to the current CPython repo.
27+ """Add a blurb (a ` Misc/NEWS.d/next` entry) to the current CPython repo.
2828
29- Use -i/ --issue to specify a GitHub issue number or link, e.g.:
29+ Use `-i`/` --issue` to specify a GitHub issue number or link, e.g.:
3030
3131 blurb add -i 12345
3232 # or
3333 blurb add -i https://github.com/python/cpython/issues/12345
3434
35- Use -s/ --section to specify the section name (case-insensitive), e.g.:
35+ Use `-s`/` --section` to specify the section name (case-insensitive), e.g.:
3636
3737 blurb add -s Library
3838 # or
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ def build_parser() -> argparse.ArgumentParser:
3939
4040 parser = argparse .ArgumentParser (
4141 prog = 'blurb' ,
42- description = 'Management tool for CPython Misc/NEWS and Misc/NEWS.d entries.' ,
43- epilog = " If blurb is run without any arguments, this is equivalent to ' blurb add'." ,
42+ description = 'Management tool for CPython ` Misc/NEWS` and ` Misc/NEWS.d` entries.' ,
43+ epilog = ' If blurb is run without any arguments, this is equivalent to ` blurb add`.' ,
4444 )
4545 parser .add_argument (
4646 '-V' ,
Original file line number Diff line number Diff line change 1414
1515
1616def merge (output : str | None = None , * , forced : bool = False ) -> None :
17- """Merge all blurbs together into a single Misc/NEWS file.
17+ """Merge all blurbs together into a single ` Misc/NEWS` file.
1818
1919 Optional output argument specifies where to write to.
20- Default is <cpython-root>/Misc/NEWS.
20+ Default is ` <cpython-root>/Misc/NEWS` .
2121
2222 If overwriting, blurb merge will prompt you to make sure it's okay.
23- To force it to overwrite, use -f .
23+ To force it to overwrite, use `-f` .
2424 """
2525 if output :
2626 output = os .path .join (original_dir , output )
Original file line number Diff line number Diff line change 77
88
99def populate () -> None :
10- """Creates and populates the Misc/NEWS.d directory tree."""
10+ """Creates and populates the ` Misc/NEWS.d` directory tree."""
1111 os .chdir ('Misc' )
1212 os .makedirs ('NEWS.d/next' , exist_ok = True )
1313
You can’t perform that action at this time.
0 commit comments