[prev in list] [next in list] [prev in thread] [next in thread]
List: virt-who-devel
Subject: [virt-who] hyperv: don't use deprecated md5 module
From: Radek Novacek <rnovacek () fedoraproject ! org>
Date: 2014-08-08 9:05:53
Message-ID: 20140808090553.0E52761229 () fedorahosted ! org
[Download RAW message or body]
commit a8f50d6c5175cd481864593a28bacb7a9b6abeeb
Author: Radek Novacek <rnovacek@redhat.com>
Date: Fri Aug 8 11:04:58 2014 +0200
hyperv: don't use deprecated md5 module
virt/hyperv/ntlm.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/virt/hyperv/ntlm.py b/virt/hyperv/ntlm.py
index c8d9c36..69991f6 100644
--- a/virt/hyperv/ntlm.py
+++ b/virt/hyperv/ntlm.py
@@ -18,11 +18,15 @@ import subprocess
try:
import hashlib
- from hashlib import md5, algorithms
+ from hashlib import md5
except ImportError:
- algorithms = []
from md5 import md5
+try:
+ from hashlib import algorithms
+except ImportError:
+ algorithms = []
+
import hmac
import random
from socket import gethostname
_______________________________________________
virt-who-devel mailing list
virt-who-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/virt-who-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic