view roundup/anypy/ssl_.py @ 7587:8f29e4ea05ce

fix: issue2551278 - datetime.datetime.utcnow deprecation. Replace calls with equivalent that produces timezone aware dates rather than naive dates. Also some flake8 fixes for test/rest_common.py.
author John Rouillard <rouilj@ieee.org>
date Tue, 25 Jul 2023 16:30:10 -0400
parents 07ce4e4110f5
children d5d7ecd31864
line wrap: on
line source

try:
    # Python 3+
    from ssl import SSLError
except (ImportError, AttributeError):
    # Python 2.5-2.7
    from socket import sslerror as SSLError    # noqa: F401

Roundup Issue Tracker: http://roundup-tracker.org/