mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Need to import * from types
This commit is contained in:
parent
fcce630a7d
commit
524e9a450b
2 changed files with 2 additions and 4 deletions
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
from Tkinter import Canvas
|
from Tkinter import Canvas
|
||||||
|
|
||||||
StringType = type('')
|
from types import *
|
||||||
DictionaryType = type({})
|
|
||||||
|
|
||||||
def _flatten(tuple):
|
def _flatten(tuple):
|
||||||
res = ()
|
res = ()
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
from Tkinter import Canvas
|
from Tkinter import Canvas
|
||||||
|
|
||||||
StringType = type('')
|
from types import *
|
||||||
DictionaryType = type({})
|
|
||||||
|
|
||||||
def _flatten(tuple):
|
def _flatten(tuple):
|
||||||
res = ()
|
res = ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue