view roundup/anypy/ssl_.py @ 6825:b04e44db7d8d

Modify unique token to use url safe characters. Looks like the merge of the methods I chose cause url unsafe / to be emitted sometimes. This causes poe post to fail as the url includes the key and the / messes up the rest route url parsing code.
author John Rouillard <rouilj@ieee.org>
date Sun, 07 Aug 2022 03:33:35 -0400
parents 3e8f2104753b
children 07ce4e4110f5
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

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