Rename wrap_with_hash to a more generic wrap_with_handler
This commit is contained in:
parent
d9973af1df
commit
84458811d5
2 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,7 @@ class SocketReader(object):
|
|||
raise IOError('Stream is not seekable.')
|
||||
|
||||
|
||||
def wrap_with_hash(in_fp, hash_obj):
|
||||
def wrap_with_handler(in_fp, handler):
|
||||
wrapper = SocketReader(in_fp)
|
||||
wrapper.add_handler(hash_obj.update)
|
||||
wrapper.add_handler(handler)
|
||||
return wrapper
|
||||
|
|
Reference in a new issue