From: Tim Peters Date: Thu, 29 Mar 2001 03:34:43 +0000 (+0000) Subject: Initialize new save_warnings_filters data member in ModifiedInterpreter.__init__. X-Git-Tag: v2.1c1~215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=301ab7f2d0ae11087512ef3a36beaf4edc3efa0a;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py index bae4e16d7e06..1f05868ea888 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