
    h                     *    S SK Jr  SS1rS rS rS rg)    )data_filenameDescriptionPrefixc              #   :  #    / nU  Hx  nUR                  S5      nUS:X  a%  [        U5       Sh  vN   UR                  5         M?  UR                  S5      (       a  US==   USS -  ss'   Mg  UR	                  U5        Mz     [        U5       Sh  vN   g Ng N7f)z|
Take an open file containing the IANA subtag registry, and yield a
dictionary of information for each subtag it describes.

z%%Nz     )rstrip
parse_itemclear
startswithappend)filelineslines      S/home/james-whalen/.local/lib/python3.13/site-packages/langcodes/registry_parser.py
parse_filer      s     
 E{{4 4< "%(((KKM__T"" "Iab!ILL  %    ) !s"   -BBA!BBBBc              #      #    0 nU  HO  nUR                  SS5      u  p4U[        ;   a#  UR                  U/ 5      R                  U5        MD  X1;  d   eXAU'   MQ     SU;   d  SU;   a  Uv   gg7f)z
Given the lines that form a subtag entry (after joining wrapped lines
back together), parse the data they contain.

Returns a generator that yields once if there was any data there
(and an empty generator if this was just the header).
z: r	   SubtagTagN)split	LIST_KEYS
setdefaultr   )r   infor   keyvalues        r   r   r      st      DZZa(
)OOC$++E2?"?I  45D=
 )s   A*A,c               #      #    [        [        S5      SS9 n [        U 5       Sh  vN   SSS5        g N! , (       d  f       g= f7f)zb
Yield a sequence of dictionaries, containing the info in the included
IANA subtag registry file.
zlanguage-subtag-registry.txtzutf-8)encodingN)openr   r   )	data_files    r   parse_registryr!   1   sF     
 
45
	 i(((
 

 	)
 
s$   A535	A5
AAN)langcodes.utilr   r   r   r   r!        r   <module>r%      s!    (H%	!,*
)r$   