Skip to content

Commit 65cd1ae

Browse files
committed
Some black and coverge fixes
1 parent 082f392 commit 65cd1ae

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

aws_gate/decorators.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def _plugin_exists_in_path():
2727
def plugin_required(
2828
wrapped_function, instance, args, kwargs
2929
): # pylint: disable=unused-argument
30-
if not _plugin_exists(PLUGIN_INSTALL_PATH) and not _plugin_exists_in_path() and not platform.system() == "Windows":
30+
if (
31+
not _plugin_exists(PLUGIN_INSTALL_PATH)
32+
and not _plugin_exists_in_path()
33+
and not platform.system() == "Windows"
34+
):
3135
raise OSError("{} not found".format(PLUGIN_NAME))
3236

3337
return wrapped_function(*args, **kwargs)

aws_gate/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def get_default_region():
113113
@contextlib.contextmanager
114114
def deferred_signals(signal_list=None):
115115
if signal_list is None:
116-
if hasattr(signal, 'SIGHUP'):
116+
if hasattr(signal, "SIGHUP"):
117117
signal_list = [signal.SIGHUP, signal.SIGINT, signal.SIGTERM]
118-
else:
118+
else: # pragma: no cover
119119
signal_list = [signal.SIGINT, signal.SIGTERM]
120120

121121
for deferred_signal in signal_list:

0 commit comments

Comments
 (0)