module_utils.common.*: removed unused objects (#59570)

pull/59592/head
Andrey Klychkov 5 years ago committed by Sam Doran
parent cfe01390aa
commit db26fe2f1e

@ -0,0 +1,2 @@
bugfixes:
- module_utils - remove unused objects from dict_transformations, removed, and sys_info modules (https://github.com/ansible/ansible/pull/59570)

@ -86,7 +86,6 @@ def _camel_to_snake(name, reversible=False):
def prepend_underscore_and_lower(m):
return '_' + m.group(0).lower()
import re
if reversible:
upper_pattern = r'[A-Z]'
else:

@ -31,7 +31,7 @@ def removed_module(removed_in, msg='This module has been removed. The module doc
version = removed_in.split('.')
try:
numeric_minor = int(version[-1])
except Exception as e:
except Exception:
last_version = None
else:
version = version[:-1]

@ -5,7 +5,6 @@
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
import platform
from ansible.module_utils import distro

Loading…
Cancel
Save