mIZZ d dl mZ d dlmZ d dlmZmZmZ ed ZddgZd Z e
ed rdd Zn G d
de ZddZd
Z
G d de Z G d de ZdS ) )PY2wraps)datetime timedeltatzinfotzname_in_python2enfoldc N t rt fd }|S S )zChange unicode output into bytestrings in Python 2
tzname() API changed in Python 3. It used to return bytes, but was changed
to unicode strings
c D | i |}|| }|S N)encode)argskwargsnamenamefuncs s/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/dateutil/tz/_common.pyadjust_encodingz*tzname_in_python2..adjust_encoding s/ 8T,V,,D{{}}K )r r )r r s ` r r r
sC x
r fold c . | | S )
Provides a unified interface for assigning the ``fold`` attribute to
datetimes both before and after the implementation of PEP-495.
:param fold:
The value for the ``fold`` attribute in the returned datetime. This
should be either 0 or 1.
:return:
Returns an object for which ``getattr(dt, 'fold', 0)`` returns
``fold`` for all versions of Python. In versions prior to
Python 3.6, this is a ``_DatetimeWithFold`` object, which is a
subclass of :py:class:`datetime.datetime` with the ``fold``
attribute added, if ``fold`` is 1.
.. versionadded:: 2.6.0
r replace)dtr s r r
r
% s $ zztz$$$r c 2 e Zd ZdZdZd Zed ZdS )_DatetimeWithFoldz
This is a class designed to provide a PEP 495-compliant interface for
Python versions before 3.6. It is used only for dates in a fold, so
the ``fold`` attribute is fixed at ``1``.
.. versionadded:: 2.6.0
c d}t || D ]0\ }}||v r"t d | |||<