Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion googleapiclient/discovery_cache/file_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
10 changes: 5 additions & 5 deletions samples/analytics/management_v3_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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,
Expand Down