mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-15 22:18:10 +01:00
implement workaround for status singular mistake
This commit is contained in:
@@ -314,6 +314,10 @@ def singular(s):
|
||||
if single_noun is False:
|
||||
return s
|
||||
else:
|
||||
# special case for upload-status which is not properly singularized by inflection
|
||||
if s.lower().endswith('status') and single_noun.lower().endswith('statu'):
|
||||
return single_noun + 's'
|
||||
|
||||
return single_noun
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user