Skip to content

Pytz deprecation message - PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. #27

@italovalcy

Description

@italovalcy

From kytos console:

/usr/local/lib/python3.7/dist-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  if obj.zone == 'local':

/usr/local/lib/python3.7/dist-packages/apscheduler/util.py:95:

def astimezone(obj):
    """
    Interprets an object as a timezone.

    :rtype: tzinfo

    """
    if isinstance(obj, six.string_types):
        return timezone(obj)
    if isinstance(obj, tzinfo):
...

https://github.com/kytos-ng/maintenance/blob/master/models.py#L171

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions