From: Guido van Rossum Date: Thu, 8 Aug 1996 18:31:11 +0000 (+0000) Subject: Need to import * from types X-Git-Tag: v1.4b2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=524e9a450bfb4b40f2815923a3229beab058858a;p=thirdparty%2FPython%2Fcpython.git Need to import * from types --- diff --git a/Lib/lib-tk/Canvas.py b/Lib/lib-tk/Canvas.py index cba22d1a095d..65f87f66a1f8 100644 --- a/Lib/lib-tk/Canvas.py +++ b/Lib/lib-tk/Canvas.py @@ -2,8 +2,7 @@ from Tkinter import Canvas -StringType = type('') -DictionaryType = type({}) +from types import * def _flatten(tuple): res = () diff --git a/Lib/tkinter/Canvas.py b/Lib/tkinter/Canvas.py index cba22d1a095d..65f87f66a1f8 100755 --- a/Lib/tkinter/Canvas.py +++ b/Lib/tkinter/Canvas.py @@ -2,8 +2,7 @@ from Tkinter import Canvas -StringType = type('') -DictionaryType = type({}) +from types import * def _flatten(tuple): res = ()