[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 3/9] Use hashlib instead of md5 module in iscsi.py
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 3/9] Use hashlib instead of md5 module in iscsi.py
- Date: Fri, 27 Feb 2009 18:26:11 -1000
Same fix as on the master branch. Got tired of seeing the
DeprecationWarning messages.
---
storage/iscsi.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/storage/iscsi.py b/storage/iscsi.py
index af06cfe..fff6ad1 100644
--- a/storage/iscsi.py
+++ b/storage/iscsi.py
@@ -29,7 +29,8 @@ from flags import flags
import logging
import shutil
import time
-import md5, random
+import hashlib
+import random
import partedUtils
log = logging.getLogger("anaconda")
@@ -104,7 +105,7 @@ def randomIname():
"""Generate a random initiator name the same way as iscsi-iname"""
s = "iqn.1994-05.com.fedora:01."
- m = md5.md5()
+ m = hashlib.md5()
u = os.uname()
for i in u:
m.update(i)
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]