From 3b3fc441b125bdcf8c57b786fbb61243ea3260c4 Mon Sep 17 00:00:00 2001 From: hugovk Date: Wed, 25 Jun 2014 12:25:51 +0300 Subject: [PATCH] flake8 Tests/make_hash.py --- Tests/make_hash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/make_hash.py b/Tests/make_hash.py index 71e208cff..32196e9f8 100644 --- a/Tests/make_hash.py +++ b/Tests/make_hash.py @@ -1,7 +1,5 @@ # brute-force search for access descriptor hash table -import random - modes = [ "1", "L", "LA", @@ -13,12 +11,14 @@ modes = [ "YCbCr", ] + def hash(s, i): # djb2 hash: multiply by 33 and xor character for c in s: - i = (((i<<5) + i) ^ ord(c)) & 0xffffffff + i = (((i << 5) + i) ^ ord(c)) & 0xffffffff return i + def check(size, i0): h = [None] * size for m in modes: