Skip to content

Commit a12eda7

Browse files
yoshi-automationbusunkim96
authored andcommitted
Declare encoding as utf-8 in pb2 files (via synth). (googleapis#8368)
* [CHANGE ME] Re-generated trace to pick up changes in the API or client library generator. * Source encoding header is correctly generated. * Regenerate.
1 parent d4aab0d commit a12eda7

5 files changed

Lines changed: 5 additions & 12 deletions

File tree

trace/.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by synthtool. DO NOT EDIT!
21
[run]
32
branch = True
43

trace/.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by synthtool. DO NOT EDIT!
21
[flake8]
32
ignore = E203, E266, E501, W503
43
exclude =

trace/setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# Generated by synthtool. DO NOT EDIT!
21
[bdist_wheel]
32
universal = 1

trace/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-14T12:35:05.147762Z",
2+
"updateTime": "2019-06-17T16:55:18.612177Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.25.0",
8-
"dockerImage": "googleapis/artman@sha256:ef1a98ab1e2b8f05f4d9a56f27d63347aefe14020e5f2d585172b14ca76f1d90"
7+
"version": "0.26.0",
8+
"dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "c23b68eecb00c4d285a730a49b1d7d943cd56183",
16-
"internalRef": "253113405"
15+
"sha": "7b58b37559f6a5337c4c564518e9573d742df225",
16+
"internalRef": "253322136"
1717
}
1818
},
1919
{

trace/synth.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
# Copy docs configuration
4646
s.move(library / f"docs/conf.py")
4747

48-
# Issues exist where python files should define the source encoding
49-
# https://github.com/googleapis/gapic-generator/issues/2097
50-
s.replace("google/**/proto/*_pb2.py", r"(^.*$\n)*", r"# -*- coding: utf-8 -*-\n\g<0>")
51-
5248
# ----------------------------------------------------------------------------
5349
# Add templated files
5450
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)