Skip to content

Commit

Permalink
unicode v1
Browse files Browse the repository at this point in the history
  • Loading branch information
willtp87 committed Jun 19, 2012
1 parent 816a8e4 commit a4da8c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fcrepo/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,8 @@ def open(self, url, body='', headers=None, method='GET',):

while attempts:
try:
logging.debug('Trying %s on %s with headers %s' % (method, url, headers))
logging.debug('Trying %s on %s' % (method, url))
#we can't have unicode characters floating around in the body
if isinstance(body, basestring):
logging.debug('Sending body: %s' % body)
# body=body.encode('ascii','xmlcharrefreplace')
self.conn.request(method, url, body, headers)
return check_response_status(self.conn.getresponse())
except (socket.error,
Expand Down

0 comments on commit a4da8c3

Please sign in to comment.