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

Commit

Permalink
fix fetchers.usingCurl to properly work with ExceptionWrappingFetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
temoto committed Sep 15, 2010
1 parent 06d0436 commit 3933954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openid/fetchers.py
Expand Up @@ -93,7 +93,10 @@ def setDefaultFetcher(fetcher, wrap_exceptions=True):

def usingCurl():
"""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):
"""XXX document attributes"""
Expand Down

0 comments on commit 3933954

Please sign in to comment.