File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ def _plugin_exists_in_path():
27
27
def plugin_required (
28
28
wrapped_function , instance , args , kwargs
29
29
): # 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
+ ):
31
35
raise OSError ("{} not found" .format (PLUGIN_NAME ))
32
36
33
37
return wrapped_function (* args , ** kwargs )
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ def get_default_region():
113
113
@contextlib .contextmanager
114
114
def deferred_signals (signal_list = None ):
115
115
if signal_list is None :
116
- if hasattr (signal , ' SIGHUP' ):
116
+ if hasattr (signal , " SIGHUP" ):
117
117
signal_list = [signal .SIGHUP , signal .SIGINT , signal .SIGTERM ]
118
- else :
118
+ else : # pragma: no cover
119
119
signal_list = [signal .SIGINT , signal .SIGTERM ]
120
120
121
121
for deferred_signal in signal_list :
You can’t perform that action at this time.
0 commit comments