Skip to content

Commit

Permalink
Add versionadded tags
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Feb 16, 2016
1 parent bb0f4fb commit 9d2497a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logbook/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,8 @@ def enable(self):
:raises AttributeError: The disabled property is read-only, typically
because it was overridden in a subclass.
.. versionadded:: 1.0
"""
try:
self.disabled = False
Expand All @@ -812,6 +814,8 @@ def disable(self):
:raises AttributeError: The disabled property is read-only, typically
because it was overridden in a subclass.
.. versionadded:: 1.0
"""
try:
self.disabled = True
Expand Down Expand Up @@ -1034,6 +1038,8 @@ def enable(self, force=False):
:raises AttributeError: If ``force=True`` and the disabled property of
a logger is read-only, typically because it was
overridden in a subclass.
.. versionadded:: 1.0
"""
self.disabled = False
if force:
Expand All @@ -1050,6 +1056,8 @@ def disable(self, force=False):
:raises AttributeError: If ``force=True`` and the disabled property of
a logger is read-only, typically because it was
overridden in a subclass.
.. versionadded:: 1.0
"""
self.disabled = True
if force:
Expand Down

0 comments on commit 9d2497a

Please sign in to comment.