Mercurial > hg
changeset 48908:ed2af4560f6e
revlogutils: remove Python 2 variant for iter_seed
Differential Revision: https://phab.mercurial-scm.org/D12311
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:48:45 -0700 |
parents | b677bccf74b9 |
children | 0aae0e2e90fc |
files | mercurial/revlogutils/docket.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/docket.py Mon Feb 21 10:47:31 2022 -0700 +++ b/mercurial/revlogutils/docket.py Mon Feb 21 10:48:45 2022 -0700 @@ -56,12 +56,7 @@ if inst.errno != errno.ENOENT: raise seed = b'04' # chosen by a fair dice roll. garanteed to be random - if pycompat.ispy3: - iter_seed = iter(seed) - else: - # pytype: disable=wrong-arg-types - iter_seed = (ord(c) for c in seed) - # pytype: enable=wrong-arg-types + iter_seed = iter(seed) # some basic circular sum hashing on 64 bits int_seed = 0 low_mask = int('1' * 35, 2)