File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -447,11 +447,11 @@ def tweak_patchlevel(
447447
448448@cache
449449def get_pep_number (version : str ) -> str :
450- """Fetch PEP number for a Python version from the devguide .
450+ """Fetch PEP number for a Python version from peps.python.org .
451451
452452 Returns the PEP number as a string, or "TODO" if not found.
453453 """
454- url = "https://raw.githubusercontent.com/python/devguide/main/include /release-cycle.json"
454+ url = "https://peps.python.org/api /release-cycle.json"
455455 with urllib .request .urlopen (url , timeout = 10 ) as response :
456456 data = json .loads (response .read ().decode ())
457457 if version in data :
@@ -468,7 +468,7 @@ def tweak_readme(tag: Tag, filename: str = "README.rst") -> None:
468468 # Update first line: "This is Python version 3.14.0 alpha 7"
469469 # and update length of underline in second line to match.
470470 content = readme .read_text ()
471- lines = content .splitlines ( )
471+ lines = content .split ( " \n " )
472472 this_is = f"This is Python version { tag .long_name } "
473473 underline = "=" * len (this_is )
474474 lines [0 ] = this_is
You can’t perform that action at this time.
0 commit comments