diff Lib/idlelib/PyShell.py @ 46197:01a7e66525c2 legacy-trunk

#2503 make singletons compared with "is" not == or != Thanks to Wummel for the patch
author Benjamin Peterson <benjamin@python.org>
date Sat, 29 Mar 2008 15:24:25 +0000
parents 732ca27a678c
children ebc40e500869
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Sat Mar 29 14:53:05 2008 +0000
+++ b/Lib/idlelib/PyShell.py	Sat Mar 29 15:24:25 2008 +0000
@@ -932,7 +932,7 @@
                 "The program is still running!\n Do you want to kill it?",
                 default="ok",
                 parent=self.text)
-            if response == False:
+            if response is False:
                 return "cancel"
         if self.reading:
             self.top.quit()