Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge commit 'eec4a96c5a1e64938a9af8' into temoto
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Jul 4, 2012
2 parents 4cca5db + eec4a96 commit e660b4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openid/__init__.py
Expand Up @@ -23,7 +23,7 @@
and limitations under the License. and limitations under the License.
""" """


__version__ = '[library version:2.2.1]'[17:-1] __version__ = '[library version:2.2.5]'[17:-1]


__all__ = [ __all__ = [
'association', 'association',
Expand Down
7 changes: 5 additions & 2 deletions openid/fetchers.py
Expand Up @@ -93,7 +93,10 @@ def setDefaultFetcher(fetcher, wrap_exceptions=True):


def usingCurl(): def usingCurl():
"""Whether the currently set HTTP fetcher is a Curl HTTP fetcher.""" """Whether the currently set HTTP fetcher is a Curl HTTP fetcher."""
return isinstance(getDefaultFetcher(), CurlHTTPFetcher) fetcher = getDefaultFetcher()
if isinstance(fetcher, ExceptionWrappingFetcher):
fetcher = fetcher.fetcher
return isinstance(fetcher, CurlHTTPFetcher)


class HTTPResponse(object): class HTTPResponse(object):
"""XXX document attributes""" """XXX document attributes"""
Expand Down Expand Up @@ -319,7 +322,7 @@ def write_data(chunk):
return 0 return 0
else: else:
return data.write(chunk) return data.write(chunk)

response_header_data = cStringIO.StringIO() response_header_data = cStringIO.StringIO()
c.setopt(pycurl.WRITEFUNCTION, write_data) c.setopt(pycurl.WRITEFUNCTION, write_data)
c.setopt(pycurl.HEADERFUNCTION, response_header_data.write) c.setopt(pycurl.HEADERFUNCTION, response_header_data.write)
Expand Down

0 comments on commit e660b4b

Please sign in to comment.