3 ָVXo � @ sH d dl mZ ddlmZ ddlT G dd� ded��ZG dd � d e�Zd S )� )�Gio� )�ExitableWithAliases)�*c @ s e Zd Zf Zdd� ZdS )�Publicationc O s� x(|D ] }|dkrt | jdj|� ��qW |jdd�}|jdd�}t|�}x�|D ]~}d\} } }t|�tkr�t|�dkr�|\} } }t|�dkr�|\} } t|�dkr�|d } n|} t|| �} | j |j | | |�j� qPW | j |j|||d �j� d S ) N�allow_replacement�replacez( got an unexpected keyword argument '{}'TF� � r r )r r )r r )NNN) � TypeError�__qualname__�format�getZ auto_bus_name�type�tuple�lenZauto_object_pathZ_at_exitZregister_object�__exit__Zrequest_name)�selfZbus�bus_name�objects�kwargsZkwargr r Zobject_info�path�objectZ node_info� r �!/usr/lib/python3.6/publication.py�__init__ s&