def warn(self, msg):
        """Counts the number of warnings that occurs."""
        self._warnings += 1
        return Command.warn(self, msg)
Counts the number of warnings that occurs.
product/gradle-plugin/src/main/python/setuptools/_distutils/command/check.py