File: //usr/lib/python3/dist-packages/twisted/words/xish/__pycache__/domish.cpython-38.pyc
U
��W[dw � @ s8 d Z ddlmZmZ ddlmZmZmZ ddlm Z m
Z
mZmZm
Z
mZ dd� ZddiZG d d
� d
�ZeZd'dd�Zd
d� Zdd� Zdd� Zdd� ZG dd� de�ZG dd� d�ZG dd� de�Zee�G dd� de��ZG dd� de�Zdd � Zzdd!l m!Z! W n d"Z"Y nX G d#d$� d$e!j#�Z"G d%d&� d&�Z$d"S )(z�
DOM-like XML processing support.
This module provides support for parsing XML into DOM-like object structures
and serializing such structures to an XML string representation, optimized
for use in streaming XML applications.
� )�absolute_import�division)�implementer� Interface� Attribute)�_PY3�
StringType�_coercedUnicode� iteritems�
itervalues�unicodec C s, | � dd�}t|�dkr|S d|d fS dS )zY Internal method for splitting a prefixed Element name into its
respective parts �:� � Nr )�split�len)�nameZntok� r �;/usr/lib/python3/dist-packages/twisted/words/xish/domish.py�_splitPrefix s r z$http://www.w3.org/XML/1998/namespaceZxmlc @ s<