Commit f3c07f29 authored by juga  's avatar juga
Browse files

fix: Reformat docstrings for black

To pass tox tests.
This seems to have changed in black from version 20.8b1 to 21.4b2.
parent 51a90173
Pipeline #5598 passed with stages
in 39 minutes and 2 seconds
......@@ -191,7 +191,7 @@ MAX_RECENT_PRIORITY_RELAY_COUNT = (
def fail_hard(*a, **kw):
""" Log something ... and then exit as fast as possible """
"""Log something ... and then exit as fast as possible"""
log.critical(*a, **kw)
exit(1)
......
......@@ -191,7 +191,7 @@ def load_recent_results_in_datadir(
def write_result_to_datadir(result, datadir):
""" Can be called from any thread """
"""Can be called from any thread"""
assert isinstance(result, Result)
assert os.path.isdir(datadir)
dt = datetime.utcfromtimestamp(result.time)
......@@ -852,7 +852,7 @@ class ResultDump:
fail_hard(e)
def store_result(self, result):
""" Call from ResultDump thread """
"""Call from ResultDump thread"""
assert isinstance(result, Result)
with self.data_lock:
fp = result.fingerprint
......
......@@ -52,7 +52,6 @@ def sbwshome_dir(sbwshome_empty):
@pytest.fixture(scope="session")
def test_config_path(tmpdir):
""""""
config = tmpdir.join(".sbws.ini")
return config
......
......@@ -207,7 +207,6 @@ def sbwshome_only_datadir(sbwshome_empty):
@pytest.fixture(scope="function")
def test_config_path(tmpdir):
""""""
config = tmpdir.join(".sbws.ini")
return config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment