Skip to content

Commit

Permalink
Merge pull request #6749 from tk0miya/dont_return_False_on___exit__
Browse files Browse the repository at this point in the history
Don't return False always on __exit__()
  • Loading branch information
tk0miya authored Oct 26, 2019
2 parents d2a24c2 + ee45bb3 commit 472de2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sphinx/util/docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ def __init__(self, env: "BuildEnvironment") -> None:
def __enter__(self) -> None:
self.enable()

def __exit__(self, exc_type: "Type[Exception]", exc_value: Exception, traceback: Any) -> bool: # type: ignore # NOQA
def __exit__(self, exc_type: "Type[Exception]", exc_value: Exception, traceback: Any) -> None: # NOQA
self.disable()
return False

def enable(self) -> None:
self.directive_func = directives.directive
Expand Down

0 comments on commit 472de2e

Please sign in to comment.