From c012c48866b307345935401b02e0b6de542d5d83 Mon Sep 17 00:00:00 2001 From: Adam Donahue Date: Sat, 24 Jun 2017 16:45:13 -0400 Subject: [PATCH] Address pylint issues. --- graphene/utils/str_converters.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/graphene/utils/str_converters.py b/graphene/utils/str_converters.py index 72c4cbf1..5d3d2fad 100644 --- a/graphene/utils/str_converters.py +++ b/graphene/utils/str_converters.py @@ -4,10 +4,10 @@ import re def to_camel_case(snake_str): """ Return a camel-cased version of a snake-cased string. - + Leading underscores and multiple-underscores are kept intact. - + :param snake_str: A snake-cased string. :return: A camel-cased string. """ @@ -29,11 +29,12 @@ def to_camel_case(snake_str): camel_case_sub_strings.append(s) continue - # Otherwise replace '_name' with 'Name', for example. + # Otherwise we replace '_name' with 'Name', for example. camel_case_sub_strings.append(s[1:].title()) return ''.join(camel_case_sub_strings) + # From this response in Stackoverflow # http://stackoverflow.com/a/1176023/1072990 def to_snake_case(name):