Skip to content

Commit

Permalink
Minor fix for DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Sep 11, 2020
1 parent dba25c3 commit abc9328
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.3.1
======
Minor fix for internal deprecation


v0.3.0
======
New framework for decorators, see PR `#19 <https://github.com/Chilipp/docrep/pull/19>`__
Expand Down
2 changes: 1 addition & 1 deletion docrep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
updates_docstring, reads_docstring, deprecated)


__version__ = '0.3.0'
__version__ = '0.3.1'

__author__ = 'Philipp Sommer'

Expand Down
2 changes: 0 additions & 2 deletions docrep/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ def deprecated(*args, **kwargs):


def _set_object_doc(obj, doc, stacklevel=3, py2_class='warn'):
warn("The DocstringProcessor._set_object_doc method has been "
"depreceated.", DeprecationWarning)
if isinstance(obj, types.MethodType) and six.PY2:
obj = obj.im_func
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def readme():


setup(name='docrep',
version='0.3.0',
version='0.3.1',
description='Python package for docstring repetition',
long_description=readme(),
classifiers=[
Expand Down

0 comments on commit abc9328

Please sign in to comment.