Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert back to docstring
  • Loading branch information
anniel-stripe committed Oct 24, 2022
commit bdab77dcf008cde0eac060b5b28e903d3c62588c
13 changes: 5 additions & 8 deletions stripe/api_resources/abstract/updateable_api_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from stripe.api_resources.abstract.api_resource import APIResource
from stripe.six.moves.urllib.parse import quote_plus

import warnings

class UpdateableAPIResource(APIResource):
@classmethod
Expand All @@ -13,13 +12,11 @@ def modify(cls, sid, **params):
return cls._static_request("post", url, params=params)

def save(self, idempotency_key=None):
warnings.warn(
"""
The `save` method is deprecated and will be removed in
a future major version of the library.
Use the class method `modify` on the resource instead.
""",
DeprecationWarning)
"""
The `save` method is deprecated and will be removed in a future major version of the library.

Use the class method `modify` on the resource instead.
"""
updated_params = self.serialize(None)
if updated_params:
self._request_and_refresh(
Expand Down