From 301ab7f2d0ae11087512ef3a36beaf4edc3efa0a Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 29 Mar 2001 03:34:43 +0000 Subject: 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). --- Tools/idle/PyShell.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12