diff options
author | Jakub Warmuz <jakub@warmuz.org> | 2015-06-11 18:00:18 +0300 |
---|---|---|
committer | Jakub Warmuz <jakub@warmuz.org> | 2015-06-22 07:52:08 +0300 |
commit | a278d53f5200086c2436ccf56675dd718eb6c4c9 (patch) | |
tree | 78ac3edf078f6ac111e3f0def5ed727cd1ca103d /examples | |
parent | 71a01d139ca25eae0548b35cfc5520fa5c3a808b (diff) |
Rename messages2 to messages.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/restified.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/restified.py b/examples/restified.py index 07c773575..cfd7fa8dd 100644 --- a/examples/restified.py +++ b/examples/restified.py @@ -4,7 +4,7 @@ import pkg_resources import M2Crypto -from acme import messages2 +from acme import messages from acme import jose from letsencrypt import network @@ -27,8 +27,8 @@ net.update_registration(regr.update( logging.debug(regr) authzr = net.request_challenges( - identifier=messages2.Identifier( - typ=messages2.IDENTIFIER_FQDN, value='example1.com'), + identifier=messages.Identifier( + typ=messages.IDENTIFIER_FQDN, value='example1.com'), new_authzr_uri=regr.new_authzr_uri) logging.debug(authzr) @@ -38,5 +38,5 @@ csr = M2Crypto.X509.load_request_string(pkg_resources.resource_string( 'letsencrypt.tests', os.path.join('testdata', 'csr.pem'))) try: net.request_issuance(csr, (authzr,)) -except messages2.Error as error: +except messages.Error as error: print error.detail |