Skip to content

Commit 82890ec

Browse files
authored
chore: use standard owlbot.py (#101)
* chore: use standard owlbot.py The escaping of star is fine as long as it passes docs check. #10920 * revert empty line
1 parent 6d21d32 commit 82890ec

2 files changed

Lines changed: 2 additions & 25 deletions

File tree

  • packages/google-cloud-network-services

packages/google-cloud-network-services/google/cloud/network_services_v1/services/network_services/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ class NetworkServicesClient(metaclass=NetworkServicesClientMeta):
129129
def _get_default_mtls_endpoint(api_endpoint):
130130
"""Converts api endpoint to mTLS endpoint.
131131
132-
Convert "\*.sandbox.googleapis.com" and "\*.googleapis.com" to
133-
"\*.mtls.sandbox.googleapis.com" and "\*.mtls.googleapis.com" respectively.
132+
Convert "*.sandbox.googleapis.com" and "*.googleapis.com" to
133+
"*.mtls.sandbox.googleapis.com" and "*.mtls.googleapis.com" respectively.
134134
Args:
135135
api_endpoint (Optional[str]): the api endpoint to convert.
136136
Returns:

packages/google-cloud-network-services/owlbot.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,6 @@
3535
if clean_up_generated_samples:
3636
shutil.rmtree("samples/generated_samples", ignore_errors=True)
3737
clean_up_generated_samples = False
38-
39-
# work around bug in generator
40-
# `set_` is a reserved term in protobuf
41-
# https://github.com/googleapis/gapic-generator-python/issues/1348
42-
s.replace(
43-
library / "google/cloud/**/*.py",
44-
"set_ ",
45-
"set ",
46-
)
47-
48-
# work around issue with generated docstring
49-
s.replace(
50-
library / "google/cloud/**/*.py",
51-
"A hostname may be prefixed with a wildcard label \(\*.\).",
52-
"A hostname may be prefixed with a wildcard label (\*.)."
53-
)
54-
55-
s.replace(
56-
library / "google/cloud/**/*.py",
57-
"""\"\*.""",
58-
"""\"\*.""",
59-
)
60-
6138
s.move([library], excludes=["**/gapic_version.py"])
6239
s.remove_staging_dirs()
6340

0 commit comments

Comments
 (0)