Skip to content

Commit

Permalink
chore: fix docstring replace (#38)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/1deda303-9d5e-4b48-a4b5-1bc8f66830f9/targets

- [ ] To automatically regenerate this PR, check this box.
  • Loading branch information
yoshi-automation authored Jul 1, 2020
1 parent dba9b3a commit 47bf0e0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/google-cloud-python-speech/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-speech.git",
"sha": "0d4d2c20b131269e532436da0bf6cdabc7d398e8"
"sha": "e0fc3c74178ba36a3a054431b31afe8a34289c0c"
}
},
{
Expand Down
15 changes: 15 additions & 0 deletions packages/google-cloud-python-speech/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@
r"from google.cloud.speech_\1.gapic import speech_client as speech_\1",
)


# Fix bad docstring
s.replace(
"google/**/resource_pb2.py",
"""``\\\\ ``e\.g\.``\\\\
\$MONTH\\\\ ``\.""",
"""``\ ``e.g.``\$MONTH\ ``."""
)

s.replace(
"google/**/resource_pb2.py",
"""\(e\.g\. ``\\\\ \{my-
months\}`\)\.""",
"""(e.g. ``\ {my-months}``)."""
)
# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 47bf0e0

Please sign in to comment.