Return-Path: Delivered-To: apmail-labs-commits-archive@locus.apache.org Received: (qmail 44209 invoked from network); 24 Dec 2007 12:26:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Dec 2007 12:26:23 -0000 Received: (qmail 48243 invoked by uid 500); 24 Dec 2007 12:26:12 -0000 Delivered-To: apmail-labs-commits-archive@labs.apache.org Received: (qmail 48130 invoked by uid 500); 24 Dec 2007 12:26:11 -0000 Mailing-List: contact commits-help@labs.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: labs@labs.apache.org Delivered-To: mailing list commits@labs.apache.org Received: (qmail 48119 invoked by uid 99); 24 Dec 2007 12:26:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2007 04:26:11 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2007 12:26:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5BB701A9832; Mon, 24 Dec 2007 04:25:59 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r606695 - /labs/badca/BaDCA/Certificates.py Date: Mon, 24 Dec 2007 12:25:58 -0000 To: commits@labs.apache.org From: dreid@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071224122559.5BB701A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dreid Date: Mon Dec 24 04:25:56 2007 New Revision: 606695 URL: http://svn.apache.org/viewvc?rev=606695&view=rev Log: Fix a 2.4 vs 2.5 issue highlighted by Mads Toftum Modified: labs/badca/BaDCA/Certificates.py Modified: labs/badca/BaDCA/Certificates.py URL: http://svn.apache.org/viewvc/labs/badca/BaDCA/Certificates.py?rev=606695&r1=606694&r2=606695&view=diff ============================================================================== --- labs/badca/BaDCA/Certificates.py (original) +++ labs/badca/BaDCA/Certificates.py Mon Dec 24 04:25:56 2007 @@ -104,6 +104,12 @@ dt = self.info[which] try: return datetime.strptime(dt, "%b %d %H:%M:%S %Y %Z") + except AttributeError: + try: + return datetime(*time.strptime(dt, \ + "%b %d %H:%M:%S %Y %Z")[0:6]) + except: + return None except ValueError: return None except KeyError: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org For additional commands, e-mail: commits-help@labs.apache.org