

def format_string(prop_string):
    '\n        Formats a property string to remove spaces and go from CamelCase to pep8\n        from: http://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-camel-case\n    '
    if (prop_string is None):
        return ''
    st_r = re.sub('(.)([A-Z][a-z]+)', '\\1_\\2', prop_string)
    st_r = st_r.replace(' ', '')
    return re.sub('([a-z0-9])([A-Z])', '\\1_\\2', prop_string).lower()

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py format_string/VarMisuse@58/181 `st_r`->`prop_string`