aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 13:02:51 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 13:02:51 +0200
commit64899879b001d08efd5b62b97daa85d5c825c1ee (patch)
tree2cffff91f869ea9b3182961c2d3f9d859090275c /project/utils.py
parentworkflows: add Python black run (diff)
downloadcmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.tar.gz
cmake-common-64899879b001d08efd5b62b97daa85d5c825c1ee.zip
reformat everything for fun
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py5
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