File: //usr/lib/python3/dist-packages/fail2ban/server/__pycache__/action.cpython-310.pyc
o
;s*b�v � @ st d Z dZdZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlmZ zddl
mZ W n eyC ddlmZ Y nw ddlmZ dd lmZ dd
lmZ ddlmZ dd
lmZmZmZmZmZmZm Z ee!�Z"e �#� Z$ej%Z&e�'d�Z(dZ)e�'d�Z*dd� dd� d�Z+ddd�Z,e,�-e+� G dd� dee.�Z/G dd� de.ed�Z0ddd�Z1G d d!� d!e0�Z2dS )"z'Cyril Jaquier and Fail2Ban Contributorsz>Copyright (c) 2004 Cyril Jaquier, 2011-2012 Yaroslav Halchenko�GPL� N)�ABCMeta)�MutableMapping� )�
mapTag2Opt)�DNSUtils)�MyTime)�Utils� )� getLogger�_merge_copy_dicts�
splitwords�substituteRecursiveTags�
uni_string�TAG_CRE�MAX_TAG_REPLACE_COUNTz<F-([A-Z0-9_\-]+)>)�inet4�inet6z^(\w+)\?(family)=(.*)$c C � t tjdd��S )NT��fqdn��strr �getHostname� r r �8/usr/lib/python3/dist-packages/fail2ban/server/action.py�<lambda>? � r c C r )NFr r r r r r r @ r )zfq-hostnamezsh-hostname�
� )�br�spc @ s� e Zd ZdZdZdZdd� Zddd�Zd d
d�ZeZ d!d
d�Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� ZdS )"�
CallingMapa" A Mapping type which returns the result of callable values.
`CallingMap` behaves similar to a standard python dictionary,
with the exception that any values which are callable, are called
and the result is returned as the value.
No error handling is in place, such that any errors raised in the
callable will raised as usual.
Actual dictionary is stored in property `data`, and can be accessed
to obtain original callable values.
Attributes
----------
data : dict
The dictionary data which can be accessed to obtain items uncalled
r )�data�storage� immutable�
__org_datac O s"