From ccc22d5325cc53e6a4d5cf0eee2e4df12a36e5df Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 9 Sep 2020 14:30:39 +0200 Subject: [PATCH] [common][__init__] Pre-commit cleanup --- beat/web/common/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beat/web/common/__init__.py b/beat/web/common/__init__.py index d3a37534b..da2fecd26 100644 --- a/beat/web/common/__init__.py +++ b/beat/web/common/__init__.py @@ -25,4 +25,6 @@ # # ############################################################################### -is_true = lambda value: bool(value) and value.lower() not in ('false', '0') + +def is_true(value): + return bool(value) and value.lower() not in ["false", "0"] -- GitLab