From 147b04b682c0b38549ef548138d69866adb81510 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Wed, 2 Sep 2015 07:47:38 +0530 Subject: [PATCH] Remove duplicated function definition (fallout from earlier repeated merge) --- lib/ansible/inventory/__init__.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index cbcd8186a28..c6614439f66 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -204,23 +204,6 @@ class Inventory(object): return hosts - def _split_pattern(self, pattern): - """ - takes e.g. "webservers[0:5]:dbservers:others" - and returns ["webservers[0:5]", "dbservers", "others"] - """ - - term = re.compile( - r'''(?: # We want to match something comprising: - [^:\[\]] # (anything other than ':', '[', or ']' - | # ...or... - \[[^\]]*\] # a single complete bracketed expression) - )* # repeated as many times as possible - ''', re.X - ) - - return [x for x in term.findall(pattern) if x] - def _evaluate_patterns(self, patterns): """ Takes a list of patterns and returns a list of matching host names,