Skip to content

Commit

Permalink
various fix for 5gc api gen
Browse files Browse the repository at this point in the history
  • Loading branch information
p1-alexandrevaney authored and p1-ra committed May 12, 2021
1 parent b764af6 commit 79c3c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi_python_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def to_valid_python_identifier(value: str) -> str:
See:
https://docs.python.org/3/reference/lexical_analysis.html#identifiers
"""
new_value = fix_reserved_words(fix_keywords(sanitize(value)))
new_value = fix_reserved_words(fix_keywords(sanitize(value))).lstrip('_')

if new_value.isidentifier():
return new_value
Expand Down

0 comments on commit 79c3c6a

Please sign in to comment.