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/xmllib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/xmllib.py') diff --git a/Lib/xmllib.py b/Lib/xmllib.py index 2f925563de..8bca0fc4b6 100644 --- a/Lib/xmllib.py +++ b/Lib/xmllib.py @@ -421,7 +421,7 @@ class XMLParser: # Internal -- parse comment, return length or -1 if not terminated def parse_comment(self, i): rawdata = self.rawdata - if rawdata[i:i+4] <> '