Skip to content

Commit

Permalink
Set tkinter to None if cannot be imported in Python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Feb 21, 2020
1 parent c55c5a2 commit b13aee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciunit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
try:
import Tkinter as tkinter
except ImportError:
pass # Handled in the importing modules's fix_display()
tkinter = None # Handled in the importing modules's fix_display()
FileNotFoundError = OSError
json.JSONDecodeError = ValueError
else:
Expand Down

0 comments on commit b13aee2

Please sign in to comment.