def set_description(self, desc):
    if isinstance(desc, basestring):
        lines = desc.splitlines()
    else:
        lines = [line.rstrip() for line in desc]
    while (lines and (not lines[0])):
        lines.pop(0)
    while (lines and (not lines[(- 1)])):
        lines.pop((- 1))
    self._description_lines = lines
def set_description(self, desc):
    if isinstance(desc, basestring):
        lines = desc.splitlines()
    else:
        lines = [line.rstrip() for line in desc]
    while (lines and (not lines[0])):
        lines.pop(0)
    while (lines and (not lines[(- 1)])):
        lines.pop((- 1))
    self._description_lines = lines