]> git.ozlabs.org Git - patchwork/commit
Don't use total_seconds for python < 2.7
authorKonstantin Ryabitsev <mricon@kernel.org>
Thu, 13 Jun 2013 14:50:56 +0000 (10:50 -0400)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 16 Jun 2013 08:54:07 +0000 (16:54 +0800)
commit3c9319711a8b4cc91016043f80129362ab438dfc
tree65b05ee5134b80e2d07c5e00a841170a55d3f176
parent508510d29aa7b0aaf946f6565e8040f9895f84c8
Don't use total_seconds for python < 2.7

The total_seconds function was added to datetime in python-2.7. For
compatibility with previous versions of python, use its suggested
equivalent (except drop microseconds, since we don't care about them in
this context).

Signed-off-by: Konstantin Ryabitsev <mricon@kernel.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/views/__init__.py