@@ -512,7 +512,7 @@ def _name_from_project_path(path, project, template):
512
512
return match .group ('name' )
513
513
514
514
515
- def make_secure_channel (credentials , user_agent , host , extra_options = None ):
515
+ def make_secure_channel (credentials , user_agent , host , extra_options = () ):
516
516
"""Makes a secure channel for an RPC service.
517
517
518
518
Uses / depends on gRPC.
@@ -538,10 +538,7 @@ def make_secure_channel(credentials, user_agent, host, extra_options=None):
538
538
http_request = google_auth_httplib2 .Request (http = httplib2 .Http ())
539
539
540
540
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
545
542
return google .auth .transport .grpc .secure_authorized_channel (
546
543
credentials ,
547
544
http_request ,
@@ -550,7 +547,7 @@ def make_secure_channel(credentials, user_agent, host, extra_options=None):
550
547
551
548
552
549
def make_secure_stub (credentials , user_agent , stub_class , host ,
553
- extra_options = None ):
550
+ extra_options = () ):
554
551
"""Makes a secure stub for an RPC service.
555
552
556
553
Uses / depends on gRPC.
0 commit comments