<s> import collections <EOL> from django . utils . text import camel_case_to_spaces , capfirst <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def captitle ( title ) : <EOL> return capfirst ( camel_case_to_spaces ( title ) ) <EOL> def deepmerge ( * dicts ) : <EOL> merged = { } <EOL> for dct in dicts : <EOL> for key , value in dct . items ( ) : <EOL> if not isinstance ( value , dict ) : <EOL> merged [ key ] = value <EOL> else : <EOL> origin = merged . get ( key , { } ) <EOL> merged [ key ] = deepmerge ( origin , value ) <EOL> return merged <EOL> def indexonly ( obj ) : <EOL> return ( isinstance ( obj , collections . Sequence ) and not <EOL> hasattr ( obj , '<STR_LIT>' ) and not hasattr ( obj , '<STR_LIT>' ) ) </s>
