Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmachine committed Oct 21, 2024
1 parent e140b2f commit 7a9b59d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Makes all pytest fixtures available to use across any unit test.
See: embedded_stormlib_path
See: https://gist.github.com/peterhurford/09f7dcda0ab04b95c026c60fa49c2a68
"""
import pytest

Expand Down
4 changes: 1 addition & 3 deletions test/helpers/stormlib_test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def run_test_if_supported_os() -> bool:


def _first_true(iterable, default=False, predicate=None):
"Returns the first true value or the *default* if there is no true value."
# first_true([a,b,c], x) → a or b or c or x
# first_true([a,b], x, f) → a if f(a) else b if f(b) else x
"""Returns the first true value or the *default* if there is no true value."""
return next(filter(predicate, iterable), default)


Expand Down

0 comments on commit 7a9b59d

Please sign in to comment.