]> granicus.if.org Git - python/commitdiff
Need to import * from types
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 18:31:11 +0000 (18:31 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 18:31:11 +0000 (18:31 +0000)
Lib/lib-tk/Canvas.py
Lib/tkinter/Canvas.py

index cba22d1a095d64473a39469e13ab4018d60d73ae..65f87f66a1f8d7e5a6fa01fd06f86d0424c2cb2e 100644 (file)
@@ -2,8 +2,7 @@
 
 from Tkinter import Canvas
 
-StringType = type('')
-DictionaryType = type({})
+from types import *
 
 def _flatten(tuple):
        res = ()
index cba22d1a095d64473a39469e13ab4018d60d73ae..65f87f66a1f8d7e5a6fa01fd06f86d0424c2cb2e 100755 (executable)
@@ -2,8 +2,7 @@
 
 from Tkinter import Canvas
 
-StringType = type('')
-DictionaryType = type({})
+from types import *
 
 def _flatten(tuple):
        res = ()