blob: 3cdd35bd81c635bfaa37b84adc01e9cd11c67791 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git i/ipkg.py w/ipkg.py
index 02aab22..145686c 100644
--- i/ipkg.py
+++ w/ipkg.py
@@ -36,10 +36,10 @@ import tempfile
import os
import sys
import glob
-import md5
import re
import string
import commands
+from hashlib import md5
from stat import ST_SIZE
class Version:
@@ -136,7 +136,7 @@ class Package:
# compute the MD5.
f = open(fn, "r")
- sum = md5.new()
+ sum = md5()
while 1:
data = f.read(1024)
if not data: break
|