Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 31352:667e88568087
manifest: unbreak pure-python manifest parsing on Python 3
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 00:44:21 -0500 |
parents | 2a18e9e6ca43 |
children | 91874c247d61 |
line wrap: on
line diff
--- a/mercurial/manifest.py Sun Mar 12 00:43:47 2017 -0500 +++ b/mercurial/manifest.py Sun Mar 12 00:44:21 2017 -0500 @@ -172,7 +172,7 @@ if not data: return [] pos = data.find("\n") - if pos == -1 or data[-1] != '\n': + if pos == -1 or data[-1:] != '\n': raise ValueError("Manifest did not end in a newline.") positions = [0] prev = data[:data.find('\x00')]