From a5a4631236eef038243a687f5f998c20ce39bf94 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh <bryan.tongminh@gmail.com> Date: Fri, 8 Feb 2008 13:35:32 +0000 Subject: [PATCH] Return timestamp as 6 length tuple --- mwclient/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mwclient/client.py b/mwclient/client.py index fa42977..2cfec36 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -23,8 +23,8 @@ except ImportError: def parse_timestamp(t): if t == '0000-00-00T00:00:00Z': - return (0, 0, 0, 0, 0, 0, 0, 0) - return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ') + return (0, 0, 0, 0, 0, 0) + return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ')[:6] class WaitToken(object): def __init__(self): -- GitLab