Set messagebox = None without Tk in checkpyver.

This commit is contained in:
Florian Bruhin 2015-08-19 06:39:22 +02:00
parent 1a61e53daa
commit 07c6c40548

View File

@ -34,6 +34,7 @@ except ImportError: # pragma: no coverage
except ImportError:
# Some Python without Tk
Tk = None
messagebox = None
# 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__':
# Needed for a test which calls this script with python 2.
check_python_version()