mercurial/crecord.py
changeset 41535 7a90ff8cd14c
parent 41417 5c73441a47e5
child 41623 7c4e205f71ca
equal deleted inserted replaced
41534:47c92f8ed128 41535:7a90ff8cd14c
  1797                 keypressed = "foobar"
  1797                 keypressed = "foobar"
  1798             if self.handlekeypressed(keypressed):
  1798             if self.handlekeypressed(keypressed):
  1799                 break
  1799                 break
  1800 
  1800 
  1801         if self.commenttext != "":
  1801         if self.commenttext != "":
  1802             whitespaceremoved = re.sub("(?m)^\s.*(\n|$)", "", self.commenttext)
  1802             whitespaceremoved = re.sub(br"(?m)^\s.*(\n|$)", b"",
       
  1803                                        self.commenttext)
  1803             if whitespaceremoved != "":
  1804             if whitespaceremoved != "":
  1804                 self.opts['message'] = self.commenttext
  1805                 self.opts['message'] = self.commenttext