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

Skip to content

Commit 2e78285

Browse files
committed
Added minimum python version check
1 parent 4a6f14d commit 2e78285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)