From b7e14ab0b7c8689544274916aa59bcbb2279141b Mon Sep 17 00:00:00 2001 From: JMSwag Date: Tue, 17 Nov 2020 09:12:05 -0800 Subject: [PATCH] move comment --- graphene/utils/str_converters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/utils/str_converters.py b/graphene/utils/str_converters.py index f0d41553..f155d8ea 100644 --- a/graphene/utils/str_converters.py +++ b/graphene/utils/str_converters.py @@ -5,6 +5,8 @@ import re # http://stackoverflow.com/a/19053800/1072990 def to_camel_case(snake_str): + # We capitalize the first letter of each component except the first one + # with the 'capitalize' method and join them together. def _camel_case_convert(components): return components[0] + "".join(x.capitalize() if x else "_" for x in components[1:]) @@ -15,8 +17,6 @@ def to_camel_case(snake_str): components = snake_str.split("_") - # We capitalize the first letter of each component except the first one - # with the 'capitalize' method and join them together. if leading_underscore: return "_" + _camel_case_convert(components) return _camel_case_convert(components)