[CalendarServer-changes] [1465] CalendarServer/trunk/twistedcaldav/tap.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 10 13:12:32 PDT 2007


Revision: 1465
          http://trac.macosforge.org/projects/calendarserver/changeset/1465
Author:   cdaboo at apple.com
Date:     2007-04-10 13:12:32 -0700 (Tue, 10 Apr 2007)

Log Message:
-----------
Make it work with Python 2.4 as well.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/tap.py

Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- 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 at apple.com
 ##
 
-from hashlib import sha1
+try:
+    from hashlib import sha1
+except ImportError:
+    import sha
+    sha1 = sha.new
 import random
 import os
 import stat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070410/5dfbaff5/attachment.html


More information about the calendarserver-changes mailing list