Skip to content

Commit

Permalink
Fixing codacity warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Apr 20, 2022
1 parent 8ec6840 commit 69ab7ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/mapdl/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,20 +607,20 @@ def __init__(self, parent):
self.show_trailing_underscore_parameters = None

def __enter__(self):
"""Storing current state"""
"""Storing current state."""
self.show_leading_underscore_parameters = (
self._parent().show_leading_underscore_parameters
)
self.show_trailing_underscore_parameters = (
self._parent().show_trailing_underscore_parameters
)

"""Getting full output"""
# Getting full output.
self._parent().show_leading_underscore_parameters = True
self._parent().show_trailing_underscore_parameters = True

def __exit__(self, *args):
"""Coming back to previous state"""
"""Coming back to previous state."""
self._parent().show_leading_underscore_parameters = (
self.show_leading_underscore_parameters
)
Expand Down

0 comments on commit 69ab7ea

Please sign in to comment.