rstrip error python2.4.3 not in 2.5.1?

Tim Roberts timr at probo.com
Sat Mar 1 01:59:29 EST 2008


dirkheld <dirkheld at gmail.com> wrote:
>>
>> What is the actual error message [SyntaxError, NameError? etc] that you
>> clipped?
>
>Here it is : I tought that I didn't matter because the deliciousapi
>worked fine on my mac.
>
>Traceback (most recent call last):
>  File "delgraph.py", line 62, in ?
>    url_metadata = d.get_url(site.rstrip())
>  File "deliciousapi.py", line 269, in get_url
>    document.bookmarks = self._extract_bookmarks_from_url_history(data)
>  File "deliciousapi.py", line 297, in
>_extract_bookmarks_from_url_history
>    timestamp = datetime.datetime.strptime(month_string, '%b ‘
>%y')
>AttributeError: type object 'datetime.datetime' has no attribute
>'strptime'

I suppose it is cruel of me, but I find it hilarious that you looked at
this traceback and came to the conclusion that the problem was in "rstrip".
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list