0001-really-retrieve-XML-encoding-10196.patch
mellon/utils.py | ||
---|---|---|
254 | 254 | |
255 | 255 | |
256 | 256 |
def get_xml_encoding(content): |
257 |
xml_encoding = 'utf-8' |
|
257 |
xml_encoding = ['utf-8'] |
|
258 | ||
258 | 259 |
def xmlDeclHandler(version, encoding, standalone): |
259 |
xml_encoding = encoding |
|
260 |
if encoding: |
|
261 |
xml_encoding[0] = encoding |
|
260 | 262 |
parser = expat.ParserCreate() |
261 | 263 |
parser.XmlDeclHandler = xmlDeclHandler |
262 | 264 |
parser.Parse(content, True) |
263 |
return xml_encoding |
|
265 |
return xml_encoding[0]
|
|
264 | 266 | |
265 | 267 | |
266 | 268 |
def get_local_path(request, url): |
tests/test_sso_slo.py | ||
---|---|---|
115 | 115 |
del self.artifact_message |
116 | 116 |
login.buildResponseMsg() |
117 | 117 |
assert 'rsa-sha256' in login.msgBody |
118 |
return login.msgBody |
|
118 |
return '<?xml version="1.0"?>\n' + login.msgBody
|
|
119 | 119 | |
120 | 120 |
def mock_artifact_resolver(self): |
121 | 121 |
@all_requests |
122 |
- |