def warning(self, msg, formatted=False):
    if (not formatted):
        new_msg = ('[WARNING]: %s' % msg)
        wrapped = textwrap.wrap(new_msg, self.columns)
        new_msg = ('\n'.join(wrapped) + '\n')
    else:
        new_msg = ('\n[WARNING]: \n%s' % msg)
    if (new_msg not in self._warns):
        self.display(new_msg, color=C.COLOR_WARN, stderr=True)
        self._warns[new_msg] = 1
def warning(self, msg, formatted=False):
    if (not formatted):
        new_msg = ('[WARNING]: %s' % msg)
        wrapped = textwrap.wrap(new_msg, self.columns)
        new_msg = ('\n'.join(wrapped) + '\n')
    else:
        new_msg = ('\n[WARNING]: \n%s' % msg)
    if (new_msg not in self._warns):
        self.display(new_msg, color=C.COLOR_WARN, stderr=True)
        self._warns[new_msg] = 1