Make it work with Python 2.4 as well.
--- CalendarServer/trunk/twistedcaldav/tap.py 2007-04-10 19:56:07 UTC (rev 1464)
+++ CalendarServer/trunk/twistedcaldav/tap.py 2007-04-10 20:12:32 UTC (rev 1465)
@@ -16,7 +16,11 @@
# DRI: David Reid, dreid@apple.com
##
-from hashlib import sha1
+try:
+ from hashlib import sha1
+except ImportError:
+ import sha
+ sha1 = sha.new
import random
import os
import stat