File: //lib/python3.6/site-packages/pyudev/__pycache__/core.cpython-36.pyc
3
u1‘Ws4 ã @ s¬ d Z ddlmZmZmZmZ ddlmZ ddlm Z ddl
mZ ddl
mZ ddl
mZ ddlmZ dd lmZ dd
lmZ ddlmZ G dd
„ d
eƒZG dd„ deƒZdS )z’
pyudev.core
===========
Core types and functions of :mod:`pyudev`.
.. moduleauthor:: Sebastian Wiesner <lunaryorn@gmail.com>
é )Úprint_functionÚdivisionÚunicode_literalsÚabsolute_import)ÚDevices)ÚDeviceNotFoundAtPathError)ÚERROR_CHECKERS)Ú
SIGNATURES)Úload_ctypes_library)Úensure_byte_string)Úensure_unicode_string)Úproperty_value_to_bytes)Úudev_list_iteratec @ sf e Zd ZdZdd„ Zdd„ Zedd„ ƒZedd „ ƒZed
d„ ƒZ edd
„ ƒZ
e
jdd
„ ƒZ
dd„ ZdS )ÚContexta
A device database connection.
This class represents a connection to the udev device database, and is
really *the* central object to access udev. You need an instance of this
class for almost anything else in pyudev.
This class itself gives access to various udev configuration data (e.g.
:attr:`sys_path`, :attr:`device_path`), and provides device enumeration
(:meth:`list_devices()`).
Instances of this class can directly be given as ``udev *`` to functions
wrapped through :mod:`ctypes`.
c C s t dttƒ| _| jjƒ | _dS )z'
Create a new context.
ZudevN)r
r r Ú_libudevZudev_newÚ_as_parameter_)Úself© r ú/usr/lib/python3.6/core.pyÚ__init__<