Merge pull request #484 from crytic/dev-slither-simil-pickle

Fixed numpy error while running slither-simil test command
pull/489/head
Feist Josselin 5 years ago committed by GitHub
commit e2303e5981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/tools/similarity/cache.py

@ -9,7 +9,7 @@ except ImportError:
def load_cache(infile, nsamples=None):
cache = dict()
with np.load(infile) as data:
with np.load(infile, allow_pickle=True) as data:
array = data['arr_0'][0]
for i,(x,y) in enumerate(array):
cache[x] = y

Loading…
Cancel
Save