To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 7ed6604d authored by Armin Rigo's avatar Armin Rigo
Browse files

An arguably bogus check in the stdlib.

parent 976cf19e
......@@ -1606,7 +1606,17 @@ class XMLParser(object):
pubid = pubid[1:-1]
if hasattr(self.target, "doctype"):
self.target.doctype(name, pubid, system[1:-1])
elif self.doctype is not self._XMLParser__doctype:
elif 1: # XXX PyPy fix, used to be
# elif self.doctype is not self._XMLParser__doctype:
# but that condition is always True on CPython, as far
# as I can tell: self._XMLParser__doctype always
# returns a fresh unbound method object.
# On PyPy, unbound and bound methods have stronger
# unicity guarantees: self._XMLParser__doctype
# can return the same unbound method object, in
# some cases making the test above incorrectly False.
# (My guess would be that the line above is a backport
# from Python 3.)
# warn about deprecated call
self._XMLParser__doctype(name, pubid, system[1:-1])
self.doctype(name, pubid, system[1:-1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment