method: code.Source.strip

 return new source object with trailing
            and leading blank lines removed.
        
    def strip(self):

origin: code.Source

where:

function source:

def strip(self):
    """ return new source object with trailing
            and leading blank lines removed.
        """
    start, end = 0, len(self)
    while start < end and not self.lines[start].strip():
        start += 1
    while end > start and not self.lines[end-1].strip():
        end -= 1
    source = Source()
    source.lines[:] = self.lines[start:end]
    return source

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py

traceback code.Source.strip.0

called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py

traceback code.Source.strip.1