Mercurial > public > mercurial-scm > hg-stable
diff mercurial/fancyopts.py @ 33115:db8531c45953
py3: slice over bytes to prevent getting it's ascii value
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 08:36:51 +0530 |
parents | bd872f64a8ba |
children | 898c6f812a51 |
line wrap: on
line diff
--- a/mercurial/fancyopts.py Tue Jun 27 00:23:32 2017 +0530 +++ b/mercurial/fancyopts.py Sun Jun 25 08:36:51 2017 +0530 @@ -39,7 +39,7 @@ args = [] while parseargs: arg = parseargs.pop(0) - if arg and arg[0] == '-' and len(arg) > 1: + if arg and arg[0:1] == '-' and len(arg) > 1: parseargs.insert(0, arg) topts, newparseargs = pycompat.getoptb(parseargs,\ options, longoptions)