Skip to content

Commit eb3b50e

Browse files
committed
address review feedback
1 parent 1c56894 commit eb3b50e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

google/api_core/path_template.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,10 @@ def transcode(http_options, message=None, **request_kwargs):
317317
else:
318318
try:
319319
if message:
320-
# gapic-generator-python append an underscores to field names
321-
# that collide with python keywords.
322-
# `_` is stripped away as it is not possible to
323-
# natively define a field with a trailing underscore in protobuf.
324-
# See related issue
325-
# https://github.com/googleapis/python-api-core/issues/227
320+
# See above comment where gapic-generator-python appends
321+
# underscores to field names that are python reserved words
322+
# If the message has an attribute with an underscore suffix,
323+
# use that instead.
326324
field_suffix = ""
327325
if hasattr(leftovers, body + "_"):
328326
field_suffix = "_"

0 commit comments

Comments
 (0)