Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: client/third_party/oauth2client/file.py

Issue 1768993002: Update oauth2client to v2.0.1 and googleapiclient to v1.5.0. Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/third_party/oauth2client/file.py
diff --git a/client/third_party/oauth2client/file.py b/client/third_party/oauth2client/file.py
index d0dd174f97621f5ef8ef47e27b2c413f268f9059..d4823591988579662a0322bedcfa06578a1d67d1 100644
--- a/client/third_party/oauth2client/file.py
+++ b/client/third_party/oauth2client/file.py
@@ -36,29 +36,14 @@ class Storage(BaseStorage):
"""Store and retrieve a single credential to and from a file."""
def __init__(self, filename):
+ super(Storage, self).__init__(lock=threading.Lock())
self._filename = filename
- self._lock = threading.Lock()
def _validate_file(self):
if os.path.islink(self._filename):
raise CredentialsFileSymbolicLinkError(
'File: %s is a symbolic link.' % self._filename)
- def acquire_lock(self):
- """Acquires any lock necessary to access this Storage.
-
- This lock is not reentrant.
- """
- self._lock.acquire()
-
- def release_lock(self):
- """Release the Storage lock.
-
- Trying to release a lock that isn't held will result in a
- RuntimeError.
- """
- self._lock.release()
-
def locked_get(self):
"""Retrieve Credential from file.

Powered by Google App Engine
This is Rietveld 408576698