Remove unused imports.

This commit is contained in:
Dave Peticolas 2012-08-09 21:25:13 -07:00
commit 08272dc25d
10 changed files with 2 additions and 37 deletions

View file

@ -15,7 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from ansible import errors
import ansible.constants as C
class Host(object):
@ -63,4 +62,3 @@ class Host(object):
groups = self.get_groups()
results['group_names'] = sorted([ g.name for g in groups if g.name != 'all'])
return results

View file

@ -17,17 +17,13 @@
#############################################
import fnmatch
import os
import subprocess
import ansible.constants as C
from ansible.inventory.host import Host
from ansible.inventory.group import Group
from ansible.inventory.expand_hosts import detect_range
from ansible.inventory.expand_hosts import expand_hostname_range
from ansible import errors
from ansible import utils
class InventoryParser(object):
"""
@ -170,5 +166,3 @@ class InventoryParser(object):
else:
(k,v) = line.split("=",1)
group.set_variable(k,v)

View file

@ -17,12 +17,10 @@
#############################################
import os
import subprocess
import ansible.constants as C
from ansible.inventory.host import Host
from ansible.inventory.group import Group
from ansible import errors
from ansible import utils
class InventoryScript(object):
@ -53,4 +51,3 @@ class InventoryScript(object):
all.add_host(host)
all.add_child_group(group)
return groups