Skip to content
Snippets Groups Projects
Commit ed2af456 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

revlogutils: remove Python 2 variant for iter_seed

Differential Revision: https://phab.mercurial-scm.org/D12311
parent b677bccf
No related branches found
No related tags found
1 merge request!168branching: merge default into stable
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment