Set messagebox = None without Tk in checkpyver.
This commit is contained in:
parent
1a61e53daa
commit
07c6c40548
@ -34,6 +34,7 @@ except ImportError: # pragma: no coverage
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
# Some Python without Tk
|
# Some Python without Tk
|
||||||
Tk = None
|
Tk = None
|
||||||
|
messagebox = None
|
||||||
|
|
||||||
|
|
||||||
# First we check the version of Python. This code should run fine with python2
|
# First we check the version of Python. This code should run fine with python2
|
||||||
@ -58,5 +59,4 @@ def check_python_version():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Needed for a test which calls this script with python 2.
|
|
||||||
check_python_version()
|
check_python_version()
|
||||||
|
Loading…
Reference in New Issue
Block a user