parameters: (value)
return_statement: return dot_atom, value
docstring: dot-atom = [CFWS] dot-atom-text [CFWS]
  
      Any place we can have a dot atom, we could instead have an rfc2047 encoded
      word.
docstring_summary: dot-atom = [CFWS] dot-atom-text [CFWS]
docstring_tokens: dot - atom = [ CFWS ] dot - atom - text [ CFWS ]
function: def get_dot_atom(value):
      """ dot-atom = [CFWS] dot-atom-text [CFWS]
  
      Any place we can have a dot atom, we could instead have an rfc2047 encoded
      word.
      """
      dot_atom = DotAtom()
      if value[0] in CFWS_LEADER:
          token, value = get_cfws(value)
          dot_atom.append(token)
      if value.startswith('=?'):
          try:
              token, value = get_encoded_word(value)
          except errors.HeaderParseError:
              # XXX: need to figure out how to register defects when
              # appropriate here.
              token, value = get_dot_atom_text(value)
      else:
          token, value = get_dot_atom_text(value)
      dot_atom.append(token)
      if value and value[0] in CFWS_LEADER:
          token, value = get_cfws(value)
          dot_atom.append(token)
      return dot_atom, value
function_tokens: def get_dot_atom ( value ) : dot_atom = DotAtom ( ) if value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) dot_atom . append ( token ) if value . startswith ( '=?' ) : try : token , value = get_encoded_word ( value ) except errors . HeaderParseError : # XXX: need to figure out how to register defects when # appropriate here. token , value = get_dot_atom_text ( value ) else : token , value = get_dot_atom_text ( value ) dot_atom . append ( token ) if value and value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) dot_atom . append ( token ) return dot_atom , value