
    Og                        d dl mZ d dlmZmZmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ d dlmZ erd d	lmZ dd
Z	 d	 	 	 	 	 ddZy)    )annotations)UnionIterableTYPE_CHECKING)Path)loader)DXFTag)ascii_tags_loader)is_dxf_file)dxf_file_info)SectionDictc                B    t        |       }t        j                  |      S )zLoad content of ASCII DXF file `filename` as SectionDict, all tags are in
    raw format with the group code as integer and the value as string: (int, str).

    )get_tag_loaderr   load_dxf_structure)filenametaggers     Z/var/www/html/public_html/myphp/venv/lib/python3.12/site-packages/ezdxf/tools/rawloader.pyraw_structure_loaderr      s    
 H%F$$V,,    c                    t        |       } t        |       st        d|  d      t        |       }t	        | d|j
                  |      5 }t        t        |d            cd d d        S # 1 sw Y   y xY w)NzFile 'z' is not an ASCII DXF file.rt)modeencodingerrorsT)skip_comments)strr   IOErrorr   openr   listr
   )r   r   infofps       r   r   r      sm     8}Hx xj(CDEE"D	hTDMM&	I ?R%b=>? ? ?s   
A**A3N)r   Union[str, Path]returnr   )ignore)r   r"   r   r   r#   zIterable[DXFTag])
__future__r   typingr   r   r   pathlibr   ezdxf.lldxfr   ezdxf.lldxf.typesr	   ezdxf.lldxf.taggerr
   ezdxf.lldxf.validatorr   ezdxf.filemanagementr   ezdxf.eztypesr   r   r    r   r   <module>r/      sO    # 1 1   $ 0 - .)- /7
?
?(+
?
?r   