@@ -512,7 +512,7 @@ def _name_from_project_path(path, project, template):
512512 return match .group ('name' )
513513
514514
515- def make_secure_channel (credentials , user_agent , host , extra_options = None ):
515+ def make_secure_channel (credentials , user_agent , host , extra_options = () ):
516516 """Makes a secure channel for an RPC service.
517517
518518 Uses / depends on gRPC.
@@ -538,10 +538,7 @@ def make_secure_channel(credentials, user_agent, host, extra_options=None):
538538 http_request = google_auth_httplib2 .Request (http = httplib2 .Http ())
539539
540540 user_agent_option = ('grpc.primary_user_agent' , user_agent )
541- if extra_options is not None :
542- options = (user_agent_option ,) + extra_options
543- else :
544- options = (user_agent_option ,)
541+ options = (user_agent_option ,) + extra_options
545542 return google .auth .transport .grpc .secure_authorized_channel (
546543 credentials ,
547544 http_request ,
@@ -550,7 +547,7 @@ def make_secure_channel(credentials, user_agent, host, extra_options=None):
550547
551548
552549def make_secure_stub (credentials , user_agent , stub_class , host ,
553- extra_options = None ):
550+ extra_options = () ):
554551 """Makes a secure stub for an RPC service.
555552
556553 Uses / depends on gRPC.
0 commit comments