parameters: (registry)
return_statement: return
docstring: Yields the records of the IANA Language Subtag Registry as dictionaries.
docstring_summary: Yields the records of the IANA Language Subtag Registry as dictionaries.
docstring_tokens: Yields the records of the IANA Language Subtag Registry as dictionaries .
function: def readRegistryRecord(registry):
      """ Yields the records of the IANA Language Subtag Registry as dictionaries. """
      record = {}
      for line in registry:
          line = line.strip()
          if line == "":
              continue
          if line == "%%":
              yield record
              record = {}
          else:
              if ":" in line:
                  key, value = line.split(":", 1)
                  key, value = key.strip(), value.strip()
                  record[key] = value
              else:
                  # continuation line
                  record[key] += " " + line
      if record:
          yield record
      return
function_tokens: def readRegistryRecord ( registry ) : record = { } for line in registry : line = line . strip ( ) if line == "" : continue if line == "%%" : yield record record = { } else : if ":" in line : key , value = line . split ( ":" , 1 ) key , value = key . strip ( ) , value . strip ( ) record [ key ] = value else : # continuation line record [ key ] += " " + line if record : yield record return