summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorChristoph Sarnowski <pixelbrei@gmail.com>2017-10-23 17:10:48 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-10-23 17:10:48 (GMT)
commit62adc55aff0b78447568f73bd1abc610d2784bf8 (patch)
tree7b54077e30885c67e78cbe7006f749e5c6496b39 /Tools
parent66caacf2f0d6213b049a3097556e28e30440b900 (diff)
downloadcpython-62adc55aff0b78447568f73bd1abc610d2784bf8.zip
cpython-62adc55aff0b78447568f73bd1abc610d2784bf8.tar.gz
cpython-62adc55aff0b78447568f73bd1abc610d2784bf8.tar.bz2
bpo-30722: Make redemo work with Python 3.6+ (GH-2311)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/demo/redemo.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/demo/redemo.py b/Tools/demo/redemo.py
index 8335d4c..256a63e 100755
--- a/Tools/demo/redemo.py
+++ b/Tools/demo/redemo.py
@@ -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,