Skip to content

Commit

Permalink
Pick up docstring fix via synth. (#6874)
Browse files Browse the repository at this point in the history
See #6824.
  • Loading branch information
tseaver authored Dec 7, 2018
1 parent 92114b7 commit f481d3f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.

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

36 changes: 24 additions & 12 deletions packages/google-cloud-dlp/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
{
"updateTime": "2018-12-07T18:26:25.134652Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.2",
"dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f",
"internalRef": "221837528"
"sha": "6f6505a69b2b0a1260c93e890d636eefb859e76e",
"internalRef": "224530961"
}
},
{
"git": {
"name": "googleapis-private",
"remote": "https://github.com/googleapis/googleapis-private.git",
"sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641",
"internalRef": "221340946"
"template": {
"name": "python_library",
"origin": "synthtool.gcp",
"version": "2018.12.6"
}
},
}
],
"destinations": [
{
"generator": {
"name": "artman",
"version": "0.16.0",
"dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b"
"client": {
"source": "googleapis",
"apiName": "dlp",
"apiVersion": "v2",
"language": "python",
"generator": "gapic",
"config": "google/privacy/dlp/artman_dlp_v2.yaml"
}
}
]
Expand Down
23 changes: 5 additions & 18 deletions packages/google-cloud-dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,14 @@
"# -*- coding: utf-8 -*-\n\g<0>",
)

# Fix unindentation of bullet list second line
s.replace(
"google/cloud/dlp_v2/gapic/dlp_service_client.py",
"( \* .*\n )([^\s*])",
"\g<1> \g<2>",
)

# Fix raw-latex bits in storage_pb2.py
s.replace(
"google/cloud/dlp_v2/gapic/dlp_service_client.py",
"(\s+)\*.*\n\s+::\n\n",
"\g<1> ::\n",
"google/cloud/dlp_v2/proto/storage_pb2.py",
"number regex.*\n(\s+)latex:.*\n",
"number regex \"(\\d\{3\}) \\d\{3\}-\\d\{4\} \"\\\n"
"\g<1>could be adjusted upwards if the area code is \\\n"
)

# Fix raw-latex bits in storage_pb2.py
# s.replace(
# "google/cloud/dlp_v2/proto/storage_pb2.py",
# "number regex.*\n(\s+)latex:.*\n",
# "number regex \"(\\d\{3\}) \\d\{3\}-\\d\{4\} \"\\\n"
# "\g<1>could be adjusted upwards if the area code is \\\n"
# )

# Fix Docstrings in google/cloud/dlp_v2/proto/storage_pb2.py
s.replace(
"google/cloud/dlp_v2/proto/storage_pb2.py",
Expand Down

0 comments on commit f481d3f

Please sign in to comment.