From e76596a115d3fce724172af11b7eac526809b0f9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 28 Sep 2018 10:12:31 +0200 Subject: [PATCH] No longer necessary since #33792 and #45628. (#45603) --- lib/ansible/module_utils/acme.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/ansible/module_utils/acme.py b/lib/ansible/module_utils/acme.py index 8ecc5b0b5a..e4f73e42eb 100644 --- a/lib/ansible/module_utils/acme.py +++ b/lib/ansible/module_utils/acme.py @@ -28,7 +28,7 @@ import tempfile import traceback from ansible.module_utils._text import to_native, to_text, to_bytes -from ansible.module_utils.urls import fetch_url as _fetch_url +from ansible.module_utils.urls import fetch_url try: import cryptography @@ -63,20 +63,6 @@ class ModuleFailException(Exception): module.fail_json(msg=self.msg, other=self.module_fail_args) -def _lowercase_fetch_url(*args, **kwargs): - ''' - Add lowercase representations of the header names as dict keys - - ''' - response, info = _fetch_url(*args, **kwargs) - - info.update(dict((header.lower(), value) for (header, value) in info.items())) - return response, info - - -fetch_url = _lowercase_fetch_url - - def nopad_b64(data): return base64.urlsafe_b64encode(data).decode('utf8').replace("=", "")