mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-30722: Make redemo work with Python 3.6+ (GH-2311)
This commit is contained in:
parent
66caacf2f0
commit
62adc55aff
2 changed files with 10 additions and 2 deletions
|
@ -75,7 +75,6 @@ class ReDemo:
|
|||
self.boxes = []
|
||||
self.vars = []
|
||||
for name in ('IGNORECASE',
|
||||
'LOCALE',
|
||||
'MULTILINE',
|
||||
'DOTALL',
|
||||
'VERBOSE'):
|
||||
|
@ -83,7 +82,7 @@ class ReDemo:
|
|||
frame = Frame(self.master)
|
||||
frame.pack(fill=X)
|
||||
self.frames.append(frame)
|
||||
val = getattr(re, name)
|
||||
val = getattr(re, name).value
|
||||
var = IntVar()
|
||||
box = Checkbutton(frame,
|
||||
variable=var, text=name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue