mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
str.rsplit does not exist in python 2.3
This commit is contained in:
parent
703b773cf0
commit
fbf78b7285
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user