From 5fddfbc6d436eb1b37f040756066dcb08f8b4bf7 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 31 Jul 2022 08:31:44 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - googleapiclient/discovery_cache/file_cache.py - samples/analytics/management_v3_reference.py Fixes: - Should read `hierarchy` rather than `hiearchy`. - Should read `accessing` rather than `accesing`. Signed-off-by: Tim Gates --- googleapiclient/discovery_cache/file_cache.py | 2 +- samples/analytics/management_v3_reference.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/googleapiclient/discovery_cache/file_cache.py b/googleapiclient/discovery_cache/file_cache.py index 3bdf93a87df..f9a9caed433 100644 --- a/googleapiclient/discovery_cache/file_cache.py +++ b/googleapiclient/discovery_cache/file_cache.py @@ -15,7 +15,7 @@ """File based cache for the discovery document. The cache is stored in a single file so that multiple processes can -share the same cache. It locks the file whenever accesing to the +share the same cache. It locks the file whenever accessing to the file. When the cache content is corrupted, it will be initialized with an empty cache. """ diff --git a/samples/analytics/management_v3_reference.py b/samples/analytics/management_v3_reference.py index 829fcd15218..c5ad2e7ab46 100755 --- a/samples/analytics/management_v3_reference.py +++ b/samples/analytics/management_v3_reference.py @@ -22,7 +22,7 @@ The application manages autorization by saving an OAuth2.0 token in a local file and reusing the token for subsequent requests. It then traverses the -Google Analytics Management hiearchy. It first retrieves and prints all the +Google Analytics Management hierarchy. It first retrieves and prints all the authorized user's accounts, next it prints all the web properties for the first account, then all the profiles for the first web property and finally all the goals for the first profile. The sample then prints all the @@ -72,9 +72,9 @@ def main(argv): scope="https://www.googleapis.com/auth/analytics.readonly", ) - # Traverse the Management hiearchy and print results or handle errors. + # Traverse the Management hierarchy and print results or handle errors. try: - traverse_hiearchy(service) + traverse_hierarchy(service) except TypeError as error: # Handle errors in constructing a query. @@ -96,8 +96,8 @@ def main(argv): ) -def traverse_hiearchy(service): - """Traverses the management API hiearchy and prints results. +def traverse_hierarchy(service): + """Traverses the management API hierarchy and prints results. This retrieves and prints the authorized user's accounts. It then retrieves and prints all the web properties for the first account,