def prompt(self):
    'Asks the user to update the description.'
    self.set_description((['# Enter a description of the change.', '# This will be displayed on the codereview site.', '# The first line will also be used as the subject of the review.', '#--------------------This line is 72 characters long--------------------'] + self._description_lines))
    regexp = re.compile(self.BUG_LINE)
    if (not any((regexp.match(line) for line in self._description_lines))):
        self.append_footer(('BUG=%s' % settings.GetBugPrefix()))
    content = gclient_utils.RunEditor(self.description, True, git_editor=settings.GetGitEditor())
    if (not content):
        DieWithError('Running editor failed')
    lines = content.splitlines()
    clean_lines = [line.rstrip() for line in lines if (not line.startswith('#'))]
    if (not clean_lines):
        DieWithError('No CL description, aborting')
    self.set_description(clean_lines)
Asks the user to update the description.
def prompt(self):
    
    self.set_description((['# Enter a description of the change.', '# This will be displayed on the codereview site.', '# The first line will also be used as the subject of the review.', '#--------------------This line is 72 characters long--------------------'] + self._description_lines))
    regexp = re.compile(self.BUG_LINE)
    if (not any((regexp.match(line) for line in self._description_lines))):
        self.append_footer(('BUG=%s' % settings.GetBugPrefix()))
    content = gclient_utils.RunEditor(self.description, True, git_editor=settings.GetGitEditor())
    if (not content):
        DieWithError('Running editor failed')
    lines = content.splitlines()
    clean_lines = [line.rstrip() for line in lines if (not line.startswith('#'))]
    if (not clean_lines):
        DieWithError('No CL description, aborting')
    self.set_description(clean_lines)