Repository URL to install this package:
Version:
4.0.109 ▾
|
ó îEYc @ sô d d l m Z d d l m Z d d l m Z m Z m Z d d l Z e d Z d d g Z d Z e e d r d d Z n" d e f d YZ d d Z d e f d YZ d e f d YZ d Z e e d e Z d S( iÿÿÿÿ( t PY3( t _thread( t datetimet timedeltat tzinfoNi t tzname_in_python2t enfoldc s f d } | S( s Change 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 s5 | | } | d k r1 t r1 | j } n | S( N( t NoneR t encode( t argst kwargst name( t namefunc( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyt adjust_encoding s ( ( R R ( ( R sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyR s t foldi c C s | j d | S( 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 ( t replace( t dtR ( ( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyR s t _DatetimeWithFoldc B s# e Z d Z d Z e d Z RS( sõ 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 C s d S( Ni ( ( t self( ( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyR ? s ( ( t __name__t __module__t __doc__t __slots__t propertyR ( ( ( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyR 5 s c C s` t | d d | k r | S| j d } | | j | j f 7} | rR t | St | Sd S( 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 i i N( t getattrt timetuplet microsecondR R R ( R R R ( ( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyR C s t _tzinfoc B s; e Z d Z d Z d Z d Z d Z d Z RS( s= Base class for all ``dateutil`` ``tzinfo`` objects. c C s} | j d | } t | d d } t | d d } | j | j k } | j d d | j d d k } | o| | S( s5 Whether or not the "wall time" of a given datetime is ambiguous in this zone. :param dt: A :py:class:`datetime.datetime`, naive or time zone aware. :return: Returns ``True`` if ambiguous, ``False`` otherwise. ..versionadded:: 2.6.0 R R i i N( R R t utcoffsetR ( R R t wall_0t wall_1t same_offsett same_dt( ( sH /home/tvault/.virtenv/lib/python2.7/site-packages/dateutil/tz/_common.pyt is_ambiguousf s $c C sH | j | r>