Commit Graph

18 Commits

Author SHA1 Message Date
Yuya Nishihara
8a515cf238 py3: iterate bytes as a byte string in dagparser.py 2017-09-03 15:32:45 +09:00
Yuya Nishihara
e122413500 py3: wrap string constants in dagparser.py with bytestr() 2017-09-03 15:28:39 +09:00
Yuya Nishihara
2f65d15f59 py3: drop use of str() in dagparser.py 2017-09-03 15:25:50 +09:00
Yuya Nishihara
8c52ede766 dagparser: fix variable name in error message
There's no variable named 'type'.
2017-09-03 15:22:54 +09:00
Yuya Nishihara
6de6cb029d doctest: upgrade old-style "except" clause 2017-09-03 15:16:01 +09:00
Yuya Nishihara
dcc07e5503 doctest: use print_function and convert bytes to unicode where needed 2017-09-03 14:56:31 +09:00
Yuya Nishihara
a71f259bd2 doctest: bulk-replace string literals with b'' for Python 3
Our code transformer can't rewrite string literals in docstrings, and I
don't want to make the transformer more complex.
2017-09-03 14:32:11 +09:00
Augie Fackler
1eff068d70 dagparser: make print statement in doctest Py3 portable
Differential Revision: https://phab.mercurial-scm.org/D277
2017-06-15 13:32:02 -04:00
Pierre-Yves David
30913031d4 error: get Abort from 'error' instead of 'util'
The home of 'Abort' is 'error' not 'util' however, a lot of code seems to be
confused about that and gives all the credit to 'util' instead of the
hardworking 'error'. In a spirit of equity, we break the cycle of injustice and
give back to 'error' the respect it deserves. And screw that 'util' poser.

For great justice.
2015-10-08 12:55:45 -07:00
Gregory Szorc
9d35724de3 dagparser: use absolute_import 2015-08-08 19:03:34 -07:00
Pierre-Yves David
f30c32a070 dagparser: use 'next' instead of try/except for default value
"Ich liebe es wenn ein Plan funktioniert."
2015-05-18 12:22:44 -05:00
timeless@mozdev.org
023e023a87 en-us: labeled 2012-08-17 13:58:18 -07:00
Brodie Rao
d6a6abf2b0 cleanup: eradicate long lines 2012-05-12 15:54:54 +02:00
Brodie Rao
7362459729 cleanup: use x in (a, b) instead of x == a or x == b 2010-09-23 00:02:31 -05:00
Martin Geisler
d72c3089ee dagparser: translate and lowercase error messages 2010-08-30 17:17:20 +02:00
Martin Geisler
17737f37b7 dagparser: transplant part of aac98bf716a5 2010-08-15 17:49:59 +02:00
Martin Geisler
6bcf7f735a dagparser: replace format with str 2010-06-15 10:00:07 +02:00
Peter Arrenbrecht
b2bbef20ef dagparser: parses and formats DAGs as concise text
As discussed during the sprint. See the doc comment and doctests
for specification and examples. This is used in subsequent patches
to export revlog and changelog DAGs, and to generate a repo with
a given changelog DAG.
2010-06-10 11:48:15 +02:00