Mercurial > public > mercurial-scm > hg-stable
diff mercurial/error.py @ 34258:61714510220d
error: move patch.PatchError so it can easily implement __bytes__ (API)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 16:45:33 +0900 |
parents | 6df193b5c437 |
children | 795bfa2a9103 |
line wrap: on
line diff
--- a/mercurial/error.py Fri Sep 15 00:01:57 2017 -0700 +++ b/mercurial/error.py Sun Sep 03 16:45:33 2017 +0900 @@ -115,6 +115,9 @@ """Raised when parsing config files and {rev,file}sets (msg[, pos])""" __bytes__ = _tobytes +class PatchError(Exception): + __bytes__ = _tobytes + class UnknownIdentifier(ParseError): """Exception raised when a {rev,file}set references an unknown identifier"""