[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] svn2feed.py: Place author information in feed metadata

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-08-24 17:22:40 CEST

C. Michael Pilato wrote:
>> + def _format_updated_ts(self, revision_ts):
>>
>> + # Get "2006-08-10 20:17:08" from
>> + # "2006-07-28 20:17:18 +0530 (Fri, 28 Jul 2006)
>> + date = revision_ts[0:19]
>> + epoch = time.mktime(time.strptime(date, "%Y-%m-%d %H:%M:%S"))
>> + return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch))
>
> Comment here ("Get ...") doesn't seem to match the actual code behavior.

Oops. My fault. I was reading the comment as a docstring for the
function instead of as describing the line of code it precedes. Sorry.

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Thu Aug 24 17:23:44 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.