Index: third_party/google-endpoints/tkinter/constants.py |
diff --git a/third_party/google-endpoints/tkinter/constants.py b/third_party/google-endpoints/tkinter/constants.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99216f33d0a08a0d66a3aff9517ffb1a58cb9dba |
--- /dev/null |
+++ b/third_party/google-endpoints/tkinter/constants.py |
@@ -0,0 +1,13 @@ |
+from __future__ import absolute_import |
+ |
+from future.utils import PY3 |
+ |
+if PY3: |
+ from tkinter.constants import * |
+else: |
+ try: |
+ from Tkconstants import * |
+ except ImportError: |
+ raise ImportError('The Tkconstants module is missing. Does your Py2 ' |
+ 'installation include tkinter?') |
+ |