Skip to content

Commit ec7ce73

Browse files
authored
Merge pull request #1 from NationalOutdoorLeadershipSchool/73-ascii-encoding
Remove decoding
2 parents 379edea + f7422f1 commit ec7ce73

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

authorizenet/apicontrollersbase.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,10 @@ def execute(self):
153153
responseString = responseString.replace('encoding=\"utf-8\"', '')
154154
self._mainObject = objectify.fromstring(responseString)
155155
else:
156-
domResponse = xml.dom.minidom.parseString(self._httpResponse)
157-
158-
#if type(self.getresponseclass()) == type(self._response):
159156
if type(self.getresponseclass()) != type(self._mainObject):
160157
if self._response.messages.resultCode == "Error":
161158
logging.debug("Response error")
162-
domResponse = xml.dom.minidom.parseString(self._httpResponse.encode('utf-8').decode('utf-8'))
159+
domResponse = xml.dom.minidom.parseString(self._httpResponse.encode('utf-8'))
163160
logging.debug('Received response: %s' % domResponse.toprettyxml(encoding='utf-8'))
164161
else:
165162
#Need to handle ErrorResponse

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy