D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
3023066
/
root
/
usr
/
lib
/
python3.9
/
site-packages
/
sssd
/
__pycache__
/
Filename :
source_files.cpython-39.pyc
back
Copy
a �,h � @ s8 d dl Z d dlZd dlmZ e�� ZG dd� de�ZdS )� N)�Readerc sB e Zd ZdZ� fdd�Zdd� Zdd� Zd d d �Zdd� Z� Z S )�Filesz� A class used to represent a Log Files Reader Args: path -- the path where SSSD logs are to be read (default /var/log/sssd/) c s* t � �� g | _| �|�| _| �� | _d S �N)�super�__init__� log_files�resolve_path�path�get_domain_logfiles�domains��selfr �� __class__� �5/usr/lib/python3.9/site-packages/sssd/source_files.pyr s zFiles.__init__c c s� | j D ]�}z<t|�� }|D ] }|V qW d � n1 s:0 Y W q ty� } z,t�d� t�|� W Y d}~qW Y d}~qd}~0 0 qdS )zH Yields: str: The next line in the log file Nz(Could not find domain log file, skipping)r �open�FileNotFoundError�loggerZwarning)r �files�file�line�errr r r �__iter__ s * zFiles.__iter__c C s |� d�r|S |d S d S )N�/)�endswithr r r r r '