Details
Details
- Reviewers
quark - Group Reviewers
hg-reviewers - Commits
- rHGc91013452b33: dagparser: make print statement in doctest Py3 portable
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
quark |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/dagparser.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Abandoned | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
Comments, which extend to the end of the line: | Comments, which extend to the end of the line: | ||||
>>> list(parsedag('+1 # comment\\n+1')) | >>> list(parsedag('+1 # comment\\n+1')) | ||||
[('n', (0, [-1])), ('n', (1, [0]))] | [('n', (0, [-1])), ('n', (1, [0]))] | ||||
Error: | Error: | ||||
>>> try: list(parsedag('+1 bad')) | >>> try: list(parsedag('+1 bad')) | ||||
... except Exception, e: print e | ... except Exception, e: print(e) | ||||
invalid character in dag description: bad... | invalid character in dag description: bad... | ||||
''' | ''' | ||||
if not desc: | if not desc: | ||||
return | return | ||||
wordchars = string.ascii_letters + string.digits | wordchars = string.ascii_letters + string.digits | ||||