fix: replace '-' in method names with '_' (#863)
diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py
index 3158fb3..66d4927 100644
--- a/googleapiclient/discovery.py
+++ b/googleapiclient/discovery.py
@@ -131,10 +131,10 @@
name: string, method name.
Returns:
- 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 '-'
replaced with '_'.
"""
- name = name.replace("$", "_")
+ name = name.replace("$", "_").replace("-", "_")
if keyword.iskeyword(name) or name in RESERVED_WORDS:
return name + "_"
else: