Mercurial > hg > mercurial-source
changeset 36699:558e01a23f40
py3: slice on bytes to prevent getting the ascii values
Differential Revision: https://phab.mercurial-scm.org/D2039
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 05 Feb 2018 12:58:51 +0530 (2018-02-05) |
parents | 78b985c75731 |
children | 7a991241f586 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1196,7 +1196,7 @@ if k == self.firstlinekey: e = "key name '%s' is reserved" % self.firstlinekey raise error.ProgrammingError(e) - if not k[0].isalpha(): + if not k[0:1].isalpha(): e = "keys must start with a letter in a key-value file" raise error.ProgrammingError(e) if not k.isalnum():