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

This commit is contained in:
Andrey Klychkov 2019-07-25 18:04:18 +03:00 committed by Sam Doran
parent cfe01390aa
commit db26fe2f1e
4 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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:

View file

@ -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]

View file

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