From 8152d32375c40bba9ccbe43b780ebe96d9617781 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 12 Dec 2000 23:20:45 +0000 Subject: 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. --- Lib/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cmd.py') diff --git a/Lib/cmd.py b/Lib/cmd.py index 41b229325a..7671573953 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -57,7 +57,7 @@ class Cmd: def cmdloop(self, intro=None): self.preloop() - if intro != None: + if intro is not None: self.intro = intro if self.intro: print self.intro -- cgit v1.2.1