setup.py: replace call to deprecated function

2 jobs for hash_fix in 1 minute and 25 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed python2 #141362

00:00:59

passed python3 #141363

00:01:25