From 21b4212ff554927948e8eb3588b4e8e00627be1c Mon Sep 17 00:00:00 2001 From: jctanner Date: Mon, 6 Jan 2014 17:07:31 -0800 Subject: [PATCH] Merge pull request #5517 from lichesser/fix_set_depreciation_warning Fixes #5513. set is built-in since 2.4 and deprecated since 2.6 --- lib/ansible/inventory/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index 465d5a4b818..23af047a7d3 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -21,7 +21,6 @@ import fnmatch import os import re import subprocess -from sets import Set import ansible.constants as C from ansible.inventory.ini import InventoryParser @@ -252,7 +251,7 @@ class Inventory(object): """ Get all host names matching the pattern """ hosts = [] - hostnames = Set() + hostnames = set() # ignore any negative checks here, this is handled elsewhere pattern = pattern.replace("!","").replace("&", "")