diff Lib/cmd.py @ 15543:785155e2cfca legacy-trunk

Update the code to better reflect recommended style: Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
author Fred Drake <fdrake@acm.org>
date Tue, 12 Dec 2000 23:20:45 +0000
parents 1e7c32bddb8f
children b5345e99596b
line wrap: on
line diff
--- a/Lib/cmd.py	Tue Dec 12 23:16:51 2000 +0000
+++ b/Lib/cmd.py	Tue Dec 12 23:20:45 2000 +0000
@@ -57,7 +57,7 @@
 
     def cmdloop(self, intro=None):
         self.preloop()
-        if intro != None:
+        if intro is not None:
             self.intro = intro
         if self.intro:
             print self.intro