mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-27 05:24:33 +00:00
use hashlib instead of deprecated md5 module
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40423
This commit is contained in:
parent
81416c4dd1
commit
c61d0648e6
@ -1,4 +1,3 @@
|
||||
import md5
|
||||
import time
|
||||
import hmac
|
||||
import base64
|
||||
@ -20,7 +19,7 @@ from .images import BaseImagesPipeline, NoimagesDrop, ImageException
|
||||
|
||||
|
||||
def md5sum(buffer):
|
||||
m = md5.new()
|
||||
m = hashlib.md5()
|
||||
buffer.seek(0)
|
||||
while 1:
|
||||
d = buffer.read(8096)
|
||||
|
Loading…
x
Reference in New Issue
Block a user