3 À<×eX ã @ s> d dl mZ ddljZddlZejjƒ ZG dd„ dej ƒZ dS )é )Úbaseé Nc sŒ e Zd ZdZ‡ fdd„Z‡ fdd„Zdd„ Zdd „ Zd d„ Zdd „ Z dd„ Z dd„ Zdd„ Zdd„ Z dd„ Zdd„ Zdd„ Zdd„ Z‡ ZS )ÚPluginz: Base class for plugins with device hotpluging support. c s t t| ƒj||Ž d S )N)Úsuperr Ú__init__)ÚselfÚargsÚkwargs)Ú __class__© ú/usr/lib/python3.6/hotplug.pyr s zPlugin.__init__c s t t| ƒjƒ | jƒ d S )N)r r ÚcleanupÚ_hardware_events_cleanup)r )r r r r s zPlugin.cleanupc C s d S )Nr )r r r r Ú_hardware_events_init s zPlugin._hardware_events_initc C s d S )Nr )r r r r r s zPlugin._hardware_events_cleanupc C s | j ƒ d S )N)r )r r r r Ú _init_devices s zPlugin._init_devicesc C sN |dkr&t