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

Skip to content

Commit 312c0e5

Browse files
authored
Merge pull request #15028 from joybhallaa/python-version-conf.py
DOC: Python version conf.py
2 parents 01677fd + 2e78285 commit 312c0e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
import matplotlib
1818
import sphinx
1919

20+
if sys.version_info < (3, 0, 0):
21+
print("You're using python 2.x, conf.py works with python3+ only.")
22+
exit()
2023
# If your extensions are in another directory, add it here. If the directory
2124
# is relative to the documentation root, use os.path.abspath to make it
2225
# absolute, like shown here.

0 commit comments

Comments
 (0)