Viewing File: /opt/alt/python38/lib64/python3.8/site-packages/yarl/__pycache__/__init__.cpython-38.opt-1.pyc
U
Zlx @ s d dl Z d dlmZmZ d dlmZ d dlmZmZm Z m
Z
mZ d dlm
Z
mZ d dlZddlmZmZ dZd Zd
dd
ddZe ZG d
d dZG dd dZdS ) N)MappingSequence)
ip_address)SplitResult parse_qslurljoinurlsplit
urlunsplit) MultiDictMultiDictProxy )_Quoter _Unquoterz1.1.1)URLP i )ZhttpZhttpsZwsZwssc @ s, e Zd ZdZdd ZefddZdd ZdS ) cached_propertyaR Use as a class method decorator. It operates almost exactly like
the Python `@property` decorator, but it puts the result of the
method it decorates into the instance dict after the first call,
effectively replacing the function it decorates with an instance
variable. It is, in Python parlance, a data descriptor.
c C s: || _ z|j| _W n tk
r, d| _Y nX |j| _d S )N )wrapped__doc__AttributeError__name__name)selfr r /__init__.py__init__( s zcached_property.__init__c C sB |d kr| S |j | j|}||k r(|S | |}||j | j<