Skip to content

Commit

Permalink
Properly mark deprecation of Scenario.remove_meta()
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 28, 2020
1 parent a5c9dfd commit 4cad075
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ixmp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1663,15 +1663,18 @@ def set_meta(self, name_or_dict, value=None):
self.scenario, self.version)

def delete_meta(self, *args, **kwargs):
"""DEPRECATED: Remove scenario meta.
"""Remove scenario meta.
.. deprecated:: 3.1
Use :meth:`remove_meta()`.
Parameters
----------
name : str or list of str
Either single meta key or list of keys.
"""
warn('Scenario.delete_meta is deprecated; use Scenario.remove_meta '
'instead', DeprecationWarning)
warn("Scenario.delete_meta(); use remove_meta()", DeprecationWarning)
self.remove_meta(*args, **kwargs)

def remove_meta(self, name):
Expand Down

0 comments on commit 4cad075

Please sign in to comment.