File tree 1 file changed +2
-2
lines changed
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):
254
254
nameRest = name [1 :]
255
255
m = nonXmlNameFirstBMPRegexp .match (nameFirst )
256
256
if m :
257
- warnings .warn ("Coercing non-XML name" , DataLossWarning )
257
+ warnings .warn ("Coercing non-XML name: %s" % name , DataLossWarning )
258
258
nameFirstOutput = self .getReplacementCharacter (nameFirst )
259
259
else :
260
260
nameFirstOutput = nameFirst
261
261
262
262
nameRestOutput = nameRest
263
263
replaceChars = set (nonXmlNameBMPRegexp .findall (nameRest ))
264
264
for char in replaceChars :
265
- warnings .warn ("Coercing non-XML name" , DataLossWarning )
265
+ warnings .warn ("Coercing non-XML name: %s" % name , DataLossWarning )
266
266
replacement = self .getReplacementCharacter (char )
267
267
nameRestOutput = nameRestOutput .replace (char , replacement )
268
268
return nameFirstOutput + nameRestOutput
You can’t perform that action at this time.
0 commit comments