From 4f94cbd68de5760aff79b084866249a5c19e9f3d Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 31 Mar 2022 16:26:40 +0200 Subject: [PATCH] refactoring --- image_prediction/formatter/formatters/camel_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_prediction/formatter/formatters/camel_case.py b/image_prediction/formatter/formatters/camel_case.py index bb6cd9d..a91a727 100644 --- a/image_prediction/formatter/formatters/camel_case.py +++ b/image_prediction/formatter/formatters/camel_case.py @@ -10,7 +10,7 @@ class Snake2CamelCaseKeyFormatter(Formatter): if isinstance(key, str): head, *tail = key.split("_") - return head + "".join(map(lambda s: s.title(), tail)) + return head + "".join(map(str.title, tail)) else: return key