From c08648999dbc047cf8f5013f0f89adf49efb3be2 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 3 Nov 2015 08:41:09 -0800 Subject: [PATCH] Remove some more unused stdlib deps. --- lib/ansible/module_utils/redhat.py | 1 - lib/ansible/module_utils/service.py | 8 -------- 2 files changed, 9 deletions(-) diff --git a/lib/ansible/module_utils/redhat.py b/lib/ansible/module_utils/redhat.py index bf19ccf390..905990cf43 100644 --- a/lib/ansible/module_utils/redhat.py +++ b/lib/ansible/module_utils/redhat.py @@ -30,7 +30,6 @@ import os import re import types import ConfigParser -import shlex class RegistrationBase(object): diff --git a/lib/ansible/module_utils/service.py b/lib/ansible/module_utils/service.py index b63207538c..c74ecff362 100644 --- a/lib/ansible/module_utils/service.py +++ b/lib/ansible/module_utils/service.py @@ -29,19 +29,11 @@ import platform import os -import tempfile import shlex import select import subprocess import json -# The distutils module is not shipped with SUNWPython on Solaris. -# It's in the SUNWPython-devel package which also contains development files -# that don't belong on production boxes. Since our Solaris code doesn't -# depend on LooseVersion, do not import it on Solaris. -if platform.system() != 'SunOS': - from distutils.version import LooseVersion - class Service(object): """ This is the generic Service manipulation class that is subclassed based on system.