mercurial/help.py
changeset 12401 4cdaf1adafc8
parent 12387 4f8067c94729
child 12771 c77f6276c9e7
equal deleted inserted replaced
12400:40852b4b910c 12401:4cdaf1adafc8
    23         line = file.readline()
    23         line = file.readline()
    24         if not line:
    24         if not line:
    25             break
    25             break
    26 
    26 
    27     start = line[:3]
    27     start = line[:3]
    28     if start in ('"""', "'''"):
    28     if start == '"""' or start == "'''":
    29         line = line[3:]
    29         line = line[3:]
    30         while line:
    30         while line:
    31             if line.rstrip().endswith(start):
    31             if line.rstrip().endswith(start):
    32                 line = line.split(start)[0]
    32                 line = line.split(start)[0]
    33                 if line:
    33                 if line: