Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Patch the sax parser for python3 strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurin committed Feb 10, 2013
1 parent b2f5899 commit 82c3dde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boto/connection.py
Expand Up @@ -95,6 +95,14 @@

DEFAULT_CA_CERTS_FILE = os.path.join(os.path.dirname(os.path.abspath(boto.cacerts.__file__ )), "cacerts.txt")

# sigh
# monkeypatch xml.sax.parseString
def ps(*args, **kwargs):
args = list(args)
args[0] = boto.utils.ensure_bytes(args[0])
xml.sax._parseString(*args, **kwargs)
xml.sax._parseString = xml.sax.parseString
xml.sax.parseString = ps

class HostConnectionPool(object):

Expand Down

0 comments on commit 82c3dde

Please sign in to comment.