add check for Python version >=3
This commit is contained in:
parent
fbb51ae388
commit
8110f99362
|
@ -172,4 +172,8 @@ def display_coverage_report(*, module_name):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if sys.version_info < (3,):
|
||||
print('Running this script with Python 2 is not supported',
|
||||
file=sys.stderr)
|
||||
sys.exit(1)
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue