def __init__(self, verbosity=0):
    self.columns = None
    self.verbosity = verbosity
    self._deprecations = {}
    self._warns = {}
    self._errors = {}
    self.b_cowsay = None
    self.noncow = C.ANSIBLE_COW_SELECTION
    self.set_cowsay_info()
    if self.b_cowsay:
        try:
            cmd = subprocess.Popen([self.b_cowsay, '-l'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
            (out, err) = cmd.communicate()
            self.cows_available = set([to_text(c) for c in out.split()])
            if (C.ANSIBLE_COW_WHITELIST and any(C.ANSIBLE_COW_WHITELIST)):
                self.cows_available = set(C.ANSIBLE_COW_WHITELIST).intersection(self.cows_available)
        except Exception:
            self.b_cowsay = False
    self._set_column_width()
def __init__(self, verbosity=0):
    self.columns = None
    self.verbosity = verbosity
    self._deprecations = {}
    self._warns = {}
    self._errors = {}
    self.b_cowsay = None
    self.noncow = C.ANSIBLE_COW_SELECTION
    self.set_cowsay_info()
    if self.b_cowsay:
        try:
            cmd = subprocess.Popen([self.b_cowsay, '-l'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
            (out, err) = cmd.communicate()
            self.cows_available = set([to_text(c) for c in out.split()])
            if (C.ANSIBLE_COW_WHITELIST and any(C.ANSIBLE_COW_WHITELIST)):
                self.cows_available = set(C.ANSIBLE_COW_WHITELIST).intersection(self.cows_available)
        except Exception:
            self.b_cowsay = False
    self._set_column_width()