str.rsplit does not exist in python 2.3

This commit is contained in:
Benoit Boissinot 2006-06-30 23:02:08 +02:00
parent 703b773cf0
commit fbf78b7285

View File

@ -868,7 +868,7 @@ def strdate(string, format='%a %b %d %H:%M:%S %Y'):
string[-6].isspace())
if hastimezone(string):
date, tz = string.rsplit(None, 1)
date, tz = string[:-6], string[-5:]
tz = int(tz)
offset = - 3600 * (tz / 100) - 60 * (tz % 100)
else: