Repository: googleapis/google-api-python-client

Issue:
Fix simple typo: occured -> occurred
# Issue Type

[x] Bug (Typo)

# Steps to Replicate

1. Examine googleapiclient/errors.py, googleapiclient/http.py, samples/analytics/management_v3_reference.py.
2. Search for `occured`.

# Expected Behaviour

1. Should read `occurred`.




Discussion:

Resolving patch:
diff --git a/googleapiclient/errors.py b/googleapiclient/errors.py
--- a/googleapiclient/errors.py
+++ b/googleapiclient/errors.py
@@ -124,7 +124,7 @@ class MediaUploadSizeError(Error):
 
 
 class ResumableUploadError(HttpError):
-    """Error occured during resumable upload."""
+    """Error occurred during resumable upload."""
 
     pass
 
@@ -142,7 +142,7 @@ class InvalidNotificationError(Error):
 
 
 class BatchError(HttpError):
-    """Error occured during batch operations."""
+    """Error occurred during batch operations."""
 
     @util.positional(2)
     def __init__(self, reason, resp=None, content=None):
diff --git a/googleapiclient/http.py b/googleapiclient/http.py
--- a/googleapiclient/http.py
+++ b/googleapiclient/http.py
@@ -709,7 +709,7 @@ def next_chunk(self, num_retries=0):
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         headers = self._headers.copy()
         headers["range"] = "bytes=%d-%d" % (
@@ -860,7 +860,7 @@ def execute(self, http=None, num_retries=0):
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         if http is None:
             http = self.http
@@ -956,7 +956,7 @@ def next_chunk(self, http=None, num_retries=0):
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         if http is None:
             http = self.http
@@ -1419,7 +1419,7 @@ def _execute(self, http, order, requests):
       request: list, list of request objects to send.
 
     Raises:
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
       googleapiclient.errors.BatchError if the response is the wrong format.
     """
         message = MIMEMultipart("mixed")
@@ -1495,7 +1495,7 @@ def execute(self, http=None):
       None
 
     Raises:
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
       googleapiclient.errors.BatchError if the response is the wrong format.
     """
         # If we have no requests return
diff --git a/samples/analytics/management_v3_reference.py b/samples/analytics/management_v3_reference.py
--- a/samples/analytics/management_v3_reference.py
+++ b/samples/analytics/management_v3_reference.py
@@ -98,7 +98,7 @@ def traverse_hiearchy(service):
     service: The service object built by the Google API Python client library.
 
   Raises:
-    HttpError: If an error occured when accessing the API.
+    HttpError: If an error occurred when accessing the API.
     AccessTokenRefreshError: If the current token was invalid.
   """
 


Test patch: