"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "acme/acme/__init__.py" between
certbot-0.30.2.tar.gz and certbot-0.31.0.tar.gz

About: Certbot is EFF’s tool to obtain certs from Let’s Encrypt, and optionally auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

__init__.py  (certbot-0.30.2):__init__.py  (certbot-0.31.0)
"""ACME protocol implementation. """ACME protocol implementation.
This module is an implementation of the `ACME protocol`_. Latest This module is an implementation of the `ACME protocol`_.
supported version: `draft-ietf-acme-01`_.
.. _`ACME protocol`: https://ietf-wg-acme.github.io/acme .. _`ACME protocol`: https://ietf-wg-acme.github.io/acme
.. _`draft-ietf-acme-01`:
https://github.com/ietf-wg-acme/acme/tree/draft-ietf-acme-acme-01
""" """
import sys import sys
import josepy
# This code exists to keep backwards compatibility with people using acme.jose # This code exists to keep backwards compatibility with people using acme.jose
# before it became the standalone josepy package. # before it became the standalone josepy package.
# #
# It is based on # It is based on
# https://github.com/requests/requests/blob/1278ecdf71a312dc2268f3bfc0aabfab3c00 6dcf/requests/packages.py # https://github.com/requests/requests/blob/1278ecdf71a312dc2268f3bfc0aabfab3c00 6dcf/requests/packages.py
import josepy as jose
for mod in list(sys.modules): for mod in list(sys.modules):
# This traversal is apparently necessary such that the identities are # This traversal is apparently necessary such that the identities are
# preserved (acme.jose.* is josepy.*) # preserved (acme.jose.* is josepy.*)
if mod == 'josepy' or mod.startswith('josepy.'): if mod == 'josepy' or mod.startswith('josepy.'):
sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mo d] sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mo d]
 End of changes. 4 change blocks. 
7 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)