Skip to content

Commit 32d333d

Browse files
committed
README is renamed README.rst since Python 3.6
1 parent 24c1a0d commit 32d333d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

release.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def run_cmd(
248248
error(f"{cmd} failed")
249249

250250

251-
readme_re = re.compile(r"This is Python version [23]\.\d").match
251+
readme_re = re.compile(r"This is Python version 3\.\d").match
252252

253253

254254
def chdir_to_repo_root() -> str:
@@ -279,12 +279,8 @@ def test_first_line(
279279
return False
280280
return True
281281

282-
if not (
283-
test_first_line("README", readme_re)
284-
or test_first_line("README.rst", readme_re)
285-
):
282+
if not test_first_line("README.rst", readme_re):
286283
continue
287-
288284
if not test_first_line("LICENSE", "A. HISTORY OF THE SOFTWARE".__eq__):
289285
continue
290286
if not os.path.exists("Include/Python.h"):

0 commit comments

Comments
 (0)