File manager - Edit - /usr/lib/python3/dist-packages/nftables/__pycache__/nftables.cpython-310.pyc
Back
o z�bY8 � @ sD d dl Z d dlT d dlZd dlZdZG dd� d�ZG dd� d�ZdS )� N)�*z0.1c @ s e Zd ZdZdd� Zdd� ZdS )�SchemaValidatorz+Libnftables JSON validator using jsonschemac C s^ t j�t j�t�d�}t|d��}t�|�| _W d � n1 s!w Y dd l }|| _ d S )Nzschema.json�rr ) �os�path�join�dirname�__file__�open�json�load�schema� jsonschema)�self�schema_path�schema_filer � r �3/usr/lib/python3/dist-packages/nftables/nftables.py�__init__ s � zSchemaValidator.__init__c C s | j j|| jd� d S )N)�instancer )r �validater )r r r r r r "