summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-03-29 03:34:43 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-03-29 03:34:43 (GMT)
commit301ab7f2d0ae11087512ef3a36beaf4edc3efa0a (patch)
treee35039adfe34a9a8684d086fedba9d018e95bf0e /Tools
parentcb8398815150e458b3f977a5bd398e576d325aa3 (diff)
downloadcpython-301ab7f2d0ae11087512ef3a36beaf4edc3efa0a.zip
cpython-301ab7f2d0ae11087512ef3a36beaf4edc3efa0a.tar.gz
cpython-301ab7f2d0ae11087512ef3a36beaf4edc3efa0a.tar.bz2
Initialize new save_warnings_filters data member in ModifiedInterpreter.__init__.
Was getting mystery ModifiedInterpreter instance has no attribute 'save_warnings_filters' errors at odd times (for sure in a fresh IDLE, fresh file, then Run Script).
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/PyShell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py
index bae4e16..1f05868 100644
--- a/Tools/idle/PyShell.py
+++ b/Tools/idle/PyShell.py
@@ -157,6 +157,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
self.tkconsole = tkconsole
locals = sys.modules['__main__'].__dict__
InteractiveInterpreter.__init__(self, locals=locals)
+ self.save_warnings_filters = None
gid = 0