Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better unicode support #2

Merged
merged 2 commits into from
Jun 19, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
unicode v1
willtp87 committed Jun 19, 2012
commit a4da8c36bfffcd3ffcd57b6bd86b709e567e2aff
5 changes: 1 addition & 4 deletions src/fcrepo/connection.py
Original file line number Diff line number Diff line change
@@ -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,