Author cstratak
Recipients cstratak
Date 2018-10-23.15:30:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540308654.33.0.788709270274.issue35052@psf.upfronthosting.co.za>
In-reply-to
Content
Analyzing some coverity scan results I stumbled upon this issue:

Python-3.6.5/Lib/xml/dom/minidom.py:1914: original: "n._call_user_data_handler(operation, n, notation)" looks like the original copy.
Python-3.6.5/Lib/xml/dom/minidom.py:1924: copy_paste_error: "n" in "e._call_user_data_handler(operation, n, entity)" looks like a copy-paste error.
Python-3.6.5/Lib/xml/dom/minidom.py:1924: remediation: Should it say "e" instead?
# 1922|                   clone.entities._seq.append(entity)
# 1923|                   if hasattr(e, '_call_user_data_handler'):
# 1924|->                     e._call_user_data_handler(operation, n, entity)
# 1925|       else:
# 1926|           # Note the cloning of Document and DocumentType nodes is

It seems that the warning is indeed a bug, and the code in question was basically merged into python from pyxml 16 years ago.
History
Date User Action Args
2018-10-23 15:30:54cstrataksetrecipients: + cstratak
2018-10-23 15:30:54cstrataksetmessageid: <1540308654.33.0.788709270274.issue35052@psf.upfronthosting.co.za>
2018-10-23 15:30:54cstrataklinkissue35052 messages
2018-10-23 15:30:54cstratakcreate