@@ -23,7 +23,7 @@ def _google_protobuf_alias_repo_impl(rctx):
2323alias(name = "any_proto", actual = "@{0}//:any_proto") 
2424""" .format (rctx .attr .alias_to ))
2525
26- _google_protobuf_alias_repo  =  repository_rule (_google_protobuf_alias_repo_impl , attrs = {"alias_to" : attr .string ()})
26+ _google_protobuf_alias_repo  =  repository_rule (_google_protobuf_alias_repo_impl , attrs   =   {"alias_to" : attr .string ()})
2727
2828def  protoc_toolchains (name , version , google_protobuf  =  None , alias_to  =  "osx-aarch_64" , register  =  True ):
2929    """A utility method to load all Protobuf toolchains. 
@@ -42,13 +42,14 @@ def protoc_toolchains(name, version, google_protobuf = None, alias_to = "osx-aar
4242
4343    for  platform  in  PROTOC_PLATFORMS .keys ():
4444        prebuilt_protoc_repo (
45-             # We must replace hyphen with underscore to workaround rules_python   
45+             # We must replace hyphen with underscore to workaround rules_python 
4646            # File "/output-base/external/rules_python~override/python/private/proto/py_proto_library.bzl", line 62, column 17, in _py_proto_aspect_impl 
47-             # Error in fail: Cannot generate Python code for a .proto whose path contains '-'   
47+             # Error in fail: Cannot generate Python code for a .proto whose path contains '-' 
4848            # (external/_main~protoc~toolchains_protoc_hub.osx-aarch_64/include/google/protobuf/any.proto). 
4949            name  =  "." .join ([name , platform .replace ("-" , "_" )]),
5050            platform  =  platform ,
51-             version  =  version )
51+             version  =  version ,
52+         )
5253    protoc_toolchains_repo (name  =  name , user_repository_name  =  name )
5354    if  register :
5455        native .register_toolchains ("@{}//:all" .format (name ))
0 commit comments