mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #2456 from cgohlke/patch-2
Fix import of tkinter/Tkinter
This commit is contained in:
commit
167b2fec72
|
@ -25,12 +25,12 @@
|
|||
# See the README file for information on usage and redistribution.
|
||||
#
|
||||
|
||||
try:
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] > 2:
|
||||
import tkinter
|
||||
except ImportError:
|
||||
import Tkinter
|
||||
tkinter = Tkinter
|
||||
del Tkinter
|
||||
else:
|
||||
import Tkinter as tkinter
|
||||
|
||||
# required for pypy, which always has cffi installed
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user