Replace <> operator with != (i.e. not equal)
@@ -661,7 +661,7 @@ class _FeedParserMixin:
# element declared itself as escaped markup, but it isn't really
self.contentparams['type'] = u'application/xhtml+xml'
if self.incontent and self.contentparams.get('type') == u'application/xhtml+xml':
- if tag.find(':') <> -1:
+ if tag.find(':') != -1:
prefix, tag = tag.split(':', 1)
namespace = self.namespacesInUse.get(prefix, '')
if tag=='math' and namespace=='http://www.w3.org/1998/Math/MathML':
@@ -673,7 +673,7 @@ class _FeedParserMixin:
return self.handle_data('<%s%s>' % (tag, self.strattrs(attrs)), escape=0)
# match namespaces
- if tag.find(':') <> -1:
+ if tag.find(':') != -1:
prefix, suffix = tag.split(':', 1)
else:
prefix, suffix = '', tag
@@ -705,7 +705,7 @@ class _FeedParserMixin:
def unknown_endtag(self, tag):
# match namespaces
- if tag.find(':') <> -1:
+ if tag.find(':') != -1:
prefix, suffix = tag.split(':', 1)
else:
prefix, suffix = '', tag
@@ -838,7 +838,7 @@ class _FeedParserMixin:
self.version = u'rss10'
elif loweruri == 'http://www.w3.org/2005/atom':
self.version = u'atom10'
- if loweruri.find(u'backend.userland.com/rss') <> -1:
+ if loweruri.find(u'backend.userland.com/rss') != -1:
# match any backend.userland.com namespace
uri = u'http://backend.userland.com/rss'
loweruri = uri
@@ -1069,7 +1069,7 @@ class _FeedParserMixin:
def _mapToStandardPrefix(self, name):
colonpos = name.find(':')
- if colonpos <> -1:
+ if colonpos != -1:
prefix = name[:colonpos]
suffix = name[colonpos+1:]
prefix = self.namespacemap.get(prefix, prefix)
@@ -1811,7 +1811,7 @@ if _XML_AVAILABLE:
def startElementNS(self, name, qname, attrs):
namespace, localname = name
lowernamespace = str(namespace or '').lower()
- if lowernamespace.find(u'backend.userland.com/rss') <> -1:
+ if lowernamespace.find(u'backend.userland.com/rss') != -1:
# match any backend.userland.com namespace
namespace = u'http://backend.userland.com/rss'
lowernamespace = namespace
