3
;X " @ s d dl Z d dlZd dlZd dlmZ d dlmZ G dd deZg g dZ dddf fddZ
e
d d
d ZejdZ
e
d
dddd Zeedre
dejddd ZejdZe
ddddd Zyd dlZW n ek
r Y nX e
deddd Zyd dlZW nT ek
r^ yd dlZW n ek
r> Y nX e
deejfddd ZY nX e
dd!d Ze
d"ejdd#d$ Ze
d%ed&d'd( Ze
d)ed&d*d+ Zyd dlZW n ek
r Y n*X d,d- Z e
d.ee!fd&d/d0 Z"d1d2 Z#ee d3 Z$ee d4 Z%dS )5 N) str_types)FormatErrorc @ sB e Zd ZdZi ZdddZf fddZeeZdd Z d d
Z
dS )
FormatCheckera
A ``format`` property checker.
JSON Schema does not mandate that the ``format`` property actually do any
validation. If validation is desired however, instances of this class can
be hooked into validators to enable format validation.
:class:`FormatChecker` objects always return ``True`` when asked about
formats that they do not know how to validate.
To check a custom format using a function that takes an instance and
returns a ``bool``, use the :meth:`FormatChecker.checks` or
:meth:`FormatChecker.cls_checks` decorators.
Arguments:
formats (iterable):
The known formats to validate. This argument can be used to
limit which formats will be used during validation.
Nc s2 |d kr j j _ nt fdd|D _ d S )Nc 3 s | ]}| j | fV qd S )N)checkers).0k)self /usr/lib/python3.6/_format.py