diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 13:02:51 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 13:02:51 +0200 |
| commit | 64899879b001d08efd5b62b97daa85d5c825c1ee (patch) | |
| tree | 2cffff91f869ea9b3182961c2d3f9d859090275c /project/utils.py | |
| parent | workflows: add Python black run (diff) | |
| download | cmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.tar.gz cmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.zip | |
reformat everything for fun
Diffstat (limited to 'project/utils.py')
| -rw-r--r-- | project/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/project/utils.py b/project/utils.py index b96250c..08afef5 100644 --- a/project/utils.py +++ b/project/utils.py @@ -52,7 +52,8 @@ def setup_logging(): level=logging.INFO, # Log to stdout, because that's where subprocess's output goes (so that # they don't get interleaved). - stream=sys.stdout) + stream=sys.stdout, + ) try: yield except Exception as e: @@ -126,5 +127,7 @@ def retry(exc_type, timeout=5, tries=3, backoff=2): current_timeout *= backoff continue raise + return func2 + return wrapper |
