Skip to content

Commit

Permalink
fix: fix syntax for Deprecationwarning (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored Jun 30, 2021
1 parent f9aefb7 commit 82dbddb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
"""
{% if method.is_deprecated %}
warnings.warn("{{ service.client_name }}.{{ method.name|snake_case }} is deprecated",
warnings.DeprecationWarning)
DeprecationWarning)

{% endif %}
{% if not method.client_streaming %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class {{ service.async_client_name }}:
"""
{% if method.is_deprecated %}
warnings.warn("{{ service.async_client_name }}.{{ method.name|snake_case }} is deprecated",
warnings.DeprecationWarning)
DeprecationWarning)

{% endif %}
{% if not method.client_streaming %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
"""
{% if method.is_deprecated %}
warnings.warn("{{ service.client_name }}.{{ method.name|snake_case }} is deprecated",
warnings.DeprecationWarning)
DeprecationWarning)

{% endif %}
{% if not method.client_streaming %}
Expand Down

0 comments on commit 82dbddb

Please sign in to comment.