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

Skip to content

Commit 7034914

Browse files
committed
Issue #22051: remove unneeded reload that allowed bad code.
1 parent 88b215e commit 7034914

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/turtledemo/__main__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
from idlelib.Percolator import Percolator
9292
from idlelib.ColorDelegator import ColorDelegator
9393
from idlelib.textView import view_text
94-
from importlib import reload
9594
from turtledemo import __doc__ as about_turtledemo
9695

9796
import turtle
@@ -322,7 +321,6 @@ def loadfile(self, filename):
322321
self.text.delete("1.0", "end")
323322
self.text.insert("1.0", chars)
324323
self.root.title(filename + " - a Python turtle graphics example")
325-
reload(self.module)
326324
self.configGUI(NORMAL, DISABLED, DISABLED,
327325
"Press start button", "red")
328326
self.state = READY

0 commit comments

Comments
 (0)