[CalendarServer-changes] [12150] twext/trunk/twext/who/opendirectory/_scripts.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:24:14 PDT 2014
Revision: 12150
http://trac.calendarserver.org//changeset/12150
Author: wsanchez at apple.com
Date: 2013-12-19 11:49:19 -0800 (Thu, 19 Dec 2013)
Log Message:
-----------
'gross'
Modified Paths:
--------------
twext/trunk/twext/who/opendirectory/_scripts.py
Modified: twext/trunk/twext/who/opendirectory/_scripts.py
===================================================================
--- twext/trunk/twext/who/opendirectory/_scripts.py 2013-12-19 19:46:53 UTC (rev 12149)
+++ twext/trunk/twext/who/opendirectory/_scripts.py 2013-12-19 19:49:19 UTC (rev 12150)
@@ -31,9 +31,9 @@
algorithms = {
- 'md5': md5.new,
- 'md5-sess': md5.new,
- 'sha': sha.new,
+ "md5": md5.new,
+ "md5-sess": md5.new,
+ "sha": sha.new,
}
@@ -77,7 +77,7 @@
HA1 = m.digest()
else:
# We were given a username:realm:password
- HA1 = preHA1.decode('hex')
+ HA1 = preHA1.decode("hex")
if pszAlg == "md5-sess":
m = algorithms[pszAlg]()
@@ -88,7 +88,7 @@
m.update(pszCNonce)
HA1 = m.digest()
- return HA1.encode('hex')
+ return HA1.encode("hex")
# DigestCalcResponse
@@ -110,7 +110,7 @@
if pszQop == "auth-int" or pszQop == "auth-conf":
m.update(":")
m.update(pszHEntity)
- HA2 = m.digest().encode('hex')
+ HA2 = m.digest().encode("hex")
m = algorithms[algo]()
m.update(HA1)
@@ -125,7 +125,7 @@
m.update(pszQop)
m.update(":")
m.update(HA2)
- respHash = m.digest().encode('hex')
+ respHash = m.digest().encode("hex")
return respHash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/9c43b8eb/attachment.html>
More information about the calendarserver-changes
mailing list