Skip to content

Commit 15856af

Browse files
committed
Temporary workaround for tests on 3.9 & 3.10
1 parent 7836259 commit 15856af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import json
2121
import os
22+
import sys
2223
from pathlib import Path
2324
from typing import TYPE_CHECKING
2425

@@ -75,5 +76,6 @@ def create_pep_zero(app: Sphinx, env: BuildEnvironment, docnames: list[str]) ->
7576

7677
write_peps_json(peps, Path(app.outdir))
7778

78-
release_cycle = create_release_cycle()
79-
app.outdir.joinpath('release-cycle.json').write_text(release_cycle, encoding="utf-8")
79+
if sys.version_info >= (3, 11):
80+
release_cycle = create_release_cycle()
81+
app.outdir.joinpath('release-cycle.json').write_text(release_cycle, encoding="utf-8")

0 commit comments

Comments
 (0)