Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 10708:61c52fedbd45
help: it's not necessary to escape quotes
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 16 Mar 2010 16:41:22 +0100 |
parents | de1e7099d100 |
children | 38182ed043b7 |
comparison
equal
deleted
inserted
replaced
10707:4eaf1b746499 | 10708:61c52fedbd45 |
---|---|
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 == '\"\"\"' or start == "\'\'\'": | 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: |