parameters: (spec)
return_statement: return MsgSpec(spec.types, [_remap_reserved(n) for n in spec.names], new_c, spec.text, spec.full_name)
docstring: Remap field/constant names in spec to avoid collision with Python reserved words.
  
      :param spec: msg spec to map to new, python-safe field names, ``MsgSpec``
      :returns: python-safe message specification, ``MsgSpec``
docstring_summary: Remap field/constant names in spec to avoid collision with Python reserved words.
docstring_tokens: Remap field / constant names in spec to avoid collision with Python reserved words .
function: def make_python_safe(spec):
      """
      Remap field/constant names in spec to avoid collision with Python reserved words.
  
      :param spec: msg spec to map to new, python-safe field names, ``MsgSpec``
      :returns: python-safe message specification, ``MsgSpec``
      """
      new_c = [genmsg.Constant(c.type, _remap_reserved(c.name), c.val, c.val_text) for c in spec.constants]
      return MsgSpec(spec.types, [_remap_reserved(n) for n in spec.names], new_c, spec.text, spec.full_name)
function_tokens: def make_python_safe ( spec ) : new_c = [ genmsg . Constant ( c . type , _remap_reserved ( c . name ) , c . val , c . val_text ) for c in spec . constants ] return MsgSpec ( spec . types , [ _remap_reserved ( n ) for n in spec . names ] , new_c , spec . text , spec . full_name )