From dceef69ed85238edf817224a9c055c9a9fbcb874 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Mon, 30 Jan 2012 19:41:30 -0500 Subject: [PATCH] Fixes issue #75. Don't write a local cache. Reviewed in http://mail.codereview.appspot.com/5593052/. --- oauth2client/client.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/oauth2client/client.py b/oauth2client/client.py index 46d6cff..cd03e38 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py @@ -47,14 +47,6 @@ try: except ImportError: from cgi import parse_qsl -# Determine if we can write to the file system, and if we can use a local file -# cache behing httplib2. -if hasattr(os, 'tempnam'): - # Put cache file in the director '.cache'. - CACHED_HTTP = httplib2.Http('.cache') -else: - CACHED_HTTP = httplib2.Http() - logger = logging.getLogger(__name__) # Expiry is stored in RFC3339 UTC format @@ -733,7 +725,7 @@ if HAS_OPENSSL: oauth2client.crypt.AppIdentityError if the JWT fails to verify. """ if http is None: - http = CACHED_HTTP + http = httplib2.Http() resp, content = http.request(cert_uri)