Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3830] cherokee/trunk/qa: The md5 class is now located in hashlib; the old md5 python module was

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Nov 16, 2009, 6:33 AM

Post #1 of 1 (125 views)
Permalink
[3830] cherokee/trunk/qa: The md5 class is now located in hashlib; the old md5 python module was

Revision: 3830
http://svn.cherokee-project.com/changeset/3830
Author: alo
Date: 2009-11-16 15:33:30 +0100 (Mon, 16 Nov 2009)

Log Message:
-----------
The md5 class is now located in hashlib; the old md5 python module was
deprecated some time ago.

Modified Paths:
--------------
cherokee/trunk/qa/175-Digest-htdigest-2.py
cherokee/trunk/qa/base.py

Modified: cherokee/trunk/qa/175-Digest-htdigest-2.py
===================================================================
--- cherokee/trunk/qa/175-Digest-htdigest-2.py 2009-11-16 14:33:28 UTC (rev 3829)
+++ cherokee/trunk/qa/175-Digest-htdigest-2.py 2009-11-16 14:33:30 UTC (rev 3830)
@@ -58,7 +58,7 @@


def Prepare (self, www):
- from md5 import md5
+ from hashlib import md5

# Create the infrastructure
#

Modified: cherokee/trunk/qa/base.py
===================================================================
--- cherokee/trunk/qa/base.py 2009-11-16 14:33:28 UTC (rev 3829)
+++ cherokee/trunk/qa/base.py 2009-11-16 14:33:30 UTC (rev 3830)
@@ -330,7 +330,7 @@
return ret

def CalculateResponse (self, user, realm, passwd, method, url, nonce, qop, cnonce, nc):
- from md5 import md5
+ from hashlib import md5

md5obj = md5()
md5obj.update("%s:%s:%s" % (user, realm, passwd))

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.