Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
docs: fix typo in thread safety example code (#1100)
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
docs/thread_safety.md
|
@@ -17,7 +17,7 @@ from googleapiclient import discovery |
|
|
|
|
|
# Create a new Http() object for every request |
|
|
def build_request(http, *args, **kwargs): |
|
|
new_htpp = google_auth_httplib2.AuthorizedHttp(credentials, http=httplib2.Http()) |
|
|
new_http = google_auth_httplib2.AuthorizedHttp(credentials, http=httplib2.Http()) |
|
|
return googleapiclient.http.HttpRequest(new_http, *args, **kwargs) |
|
|
service = discovery.build('api_name', 'api_version', requestBuilder=build_request) |
|
|
|
|
|