Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 301ab7f

Browse files
committed
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).
1 parent cb83988 commit 301ab7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tools/idle/PyShell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def __init__(self, tkconsole):
157157
self.tkconsole = tkconsole
158158
locals = sys.modules['__main__'].__dict__
159159
InteractiveInterpreter.__init__(self, locals=locals)
160+
self.save_warnings_filters = None
160161

161162
gid = 0
162163

0 commit comments

Comments
 (0)