File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,15 +254,15 @@ def toXmlName(self, name):
254254 nameRest = name [1 :]
255255 m = nonXmlNameFirstBMPRegexp .match (nameFirst )
256256 if m :
257- warnings .warn ("Coercing non-XML name" , DataLossWarning )
257+ warnings .warn ("Coercing non-XML name: %s" % name , DataLossWarning )
258258 nameFirstOutput = self .getReplacementCharacter (nameFirst )
259259 else :
260260 nameFirstOutput = nameFirst
261261
262262 nameRestOutput = nameRest
263263 replaceChars = set (nonXmlNameBMPRegexp .findall (nameRest ))
264264 for char in replaceChars :
265- warnings .warn ("Coercing non-XML name" , DataLossWarning )
265+ warnings .warn ("Coercing non-XML name: %s" % name , DataLossWarning )
266266 replacement = self .getReplacementCharacter (char )
267267 nameRestOutput = nameRestOutput .replace (char , replacement )
268268 return nameFirstOutput + nameRestOutput
You can’t perform that action at this time.
0 commit comments