def _strip(self, doc):
        i = 0
        j = 0
        for i, line in enumerate(doc):
            if line.strip():
                break

        for j, line in enumerate(doc[::-1]):
            if line.strip():
                break

        return doc[i:len(doc) - j]
dataset/ETHPy150Open amueller/word_cloud/doc/sphinxext/numpy_ext/docscrape.py/NumpyDocString._strip/original