Files
Isaac Slavitt 08d357c5fa Drop support for Python 2
Official support for Python 2 ended on Jan 1, 2020 (see
https://www.python.org/doc/sunset-python-2/ for more info).

This change does not prevent anybody from using Python 2, but
we should not be encouraging new projects to use it.
2020-05-16 15:45:05 -04:00

19 lines
447 B
Python

import sys
REQUIRED_PYTHON_MAJOR_VERSION = 3
def main():
system_major = sys.version_info.major
if system_major != REQUIRED_PYTHON_MAJOR_VERSION:
raise TypeError(
"This project requires Python 3. Found: Python {}".format(
REQUIRED_PYTHON_MAJOR_VERSION, sys.version
)
)
else:
print(">>> Development environment passes all tests!")
if __name__ == '__main__':
main()