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 ef6420a commit 8ed729fCopy full SHA for 8ed729f
googleapiclient/discovery.py
@@ -131,10 +131,10 @@ def fix_method_name(name):
131
name: string, method name.
132
133
Returns:
134
- The name with '_' appended if the name is a reserved word and '$'
+ The name with '_' appended if the name is a reserved word and '$' and '-'
135
replaced with '_'.
136
"""
137
- name = name.replace("$", "_")
+ name = name.replace("$", "_").replace("-", "_")
138
if keyword.iskeyword(name) or name in RESERVED_WORDS:
139
return name + "_"
140
else:
0 commit comments