Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/sos/__pycache__/ |
Upload File : |
o ���bGC � @ s� d dl Z d dlZd dlZd dlmZmZmZ d dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZd dlZd dlZd dlmZ d dlmZ dZdd� ZdAd d �ZdBdd�Zdd� ZdCdd�Zdd� ZdDdd�Zedddddddddf dd�ZdDdd�ZdEdd �ZdFd"d#�Z e j!fd$d%�Z"d&d'� Z#d(d)� Z$d*d+� Z%d,d-� Z&d.d/� Z'e j(d0�d1d2�Z)d3d4� Z*g fd5d6�Z+G d7d8� d8�Z,G d9d:� d:e j-�Z.G d;d<� d<e/�Z0G d=d>� d>�Z1G d?d@� d@e2�Z3dS )G� N)�Popen�PIPE�STDOUT)�closing)�dequei, c C sT t | d��}t�| �j|kr|�| d� |�� W d � S 1 s#w Y dS )z,Returns the last number_of_bytes of filename�rb� N)�open�os�stat�st_size�seek�read)�filename�number_of_bytes�f� r �//usr/lib/python3/dist-packages/sos/utilities.py�tail s $�r �rc C sV t | t�r'zt| |�W S ty& t�d�}|�d| � tt� � � Y S w t| �S )z@Returns a file-like object that can be used as a context manager�soszfileobj: %s could not be opened) � isinstance�strr �IOError�logging� getLogger�debugr �io�StringIO)�path_or_file�mode�logr r r �fileobj&