We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46164b9 commit 84cbc07Copy full SHA for 84cbc07
googleapiclient/discovery.py
@@ -126,14 +126,16 @@ class _BytesGenerator(BytesGenerator):
126
_write_lines = BytesGenerator.write
127
128
def fix_method_name(name):
129
- """Fix method names to avoid reserved word conflicts.
+ """Fix method names to avoid '$' characters and reserved word conflicts.
130
131
Args:
132
name: string, method name.
133
134
Returns:
135
- The name with an '_' appended if the name is a reserved word.
+ The name with '_' appended if the name is a reserved word and '$'
136
+ replaced with '_'.
137
"""
138
+ name = name.replace('$', '_')
139
if keyword.iskeyword(name) or name in RESERVED_WORDS:
140
return name + '_'
141
else:
0 commit comments