handle deprecated warning, reindent conftest.py

This commit is contained in:
lilydjwg 2018-10-10 17:08:28 +08:00
parent 903b414183
commit 26eaef92aa
2 changed files with 35 additions and 35 deletions

View file

@ -20,7 +20,7 @@ for repo in _ANDROID_REPO_MANIFESTS.keys():
_repo_manifests_locks[repo] = Lock() _repo_manifests_locks[repo] = Lock()
async def _get_repo_manifest(repo): async def _get_repo_manifest(repo):
with (await _repo_manifests_locks[repo]): async with _repo_manifests_locks[repo]:
if repo in _repo_manifests_cache: if repo in _repo_manifests_cache:
return _repo_manifests_cache[repo] return _repo_manifests_cache[repo]