← Back
Editing: __init__.cpython-38.pyc
U O6ufj9 � @ s8 d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlZd dl m Z d dlmZm Z d dlZd dlmZmZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d dlZd d lmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z( d d l)m*Z* ej+ej,fZ-dd d�Z.dd� Z/dddgZ0G dd� de�Z1dS )� N)�datetime)�rmtree)�ThreadPoolExecutor�TimeoutError)�ImporterHelper�SoSTimeoutError�bold�sos_get_command_output�TIMEOUT_DEFAULT�listdir� is_executable)�_sos)�__version__)�SoSComponent) �Report�Section�Command� CopiedFile�CreatedFile�Alert�Note�PlainTextReport� JSONReport� HTMLReport)� SoSCleanerF�, c C s� g }| }|rt | �d }nd}|D ]:}t |�t |� t |� dkrP|�|� |}|| | }q"|t |� d � |kr�|d t |� � }|�|� |S )N� � �H )�len�append)Z first_line�items�indent�sep�lines�line�newline�item� r( �5/usr/lib/python3/dist-packages/sos/report/__init__.py�_format_list, s r* c C s t �| d�d�S )z� This function will format --since arg to append 0s if enduser didn't. It's used in the _get_parser. This will also be a good place to add human readable and relative date parsing (like '2 days ago') in the future z<014sz%Y%m%d%H%M%S)r �strptime)�dater( r( r) � _format_since>