# HG changeset patch # User Benoit Boissinot # Date 1151701328 -7200 # Node ID 8cb8943705147202d19493ff5f46883363fbc851 # Parent cff57cb5631ee5f9f3fcc6822567aa2525c4f241 str.rsplit does not exist in python 2.3 diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -868,7 +868,7 @@ def strdate(string, format='%a %b %d %H: 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: