The SyntaxWarning is technically correct -- we should use != in this
case, not identity comparison. Since the code is question hasn't
changed since 2008, I suspect the warning is because the syntax
checker in Python got better, not that Genshi changed.

Because Python caches small strings the code likely works, but it is
bad practice to rely on this. Will fix upstream, but it doesn't seem
worth an immediate new release.

Reply via email to