You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by dr...@apache.org on 2008/01/08 21:59:07 UTC

svn commit: r610149 - /labs/badca/BaDCA/Certificates.py

Author: dreid
Date: Tue Jan  8 12:59:06 2008
New Revision: 610149

URL: http://svn.apache.org/viewvc?rev=610149&view=rev
Log:
Correct an issue with Python 2.4 and the asTime() function.

Modified:
    labs/badca/BaDCA/Certificates.py

Modified: labs/badca/BaDCA/Certificates.py
URL: http://svn.apache.org/viewvc/labs/badca/BaDCA/Certificates.py?rev=610149&r1=610148&r2=610149&view=diff
==============================================================================
--- labs/badca/BaDCA/Certificates.py (original)
+++ labs/badca/BaDCA/Certificates.py Tue Jan  8 12:59:06 2008
@@ -106,6 +106,7 @@
                 return datetime.strptime(dt, "%b %d %H:%M:%S %Y %Z")
             except AttributeError:
                 try:
+                    import time
                     return datetime(*time.strptime(dt, \
                                            "%b %d %H:%M:%S %Y %Z")[0:6])
                 except:



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org