there should be ``` if hashfunc: hashfunc = getattr(hashlib, hashfunc) else: hashfunc = hashlib.sha1 ``` instead off hashfunc = hashfunc or hashlib.sha1
there should be
instead off
hashfunc = hashfunc or hashlib.sha1