diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-14 10:54:53 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-14 11:52:53 +0100 |
commit | 2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5 (patch) | |
tree | fbec7069b00a5810c4e3fb2ec7ba378346405cb1 /docs/source | |
parent | a04cd2e596887e8d8f59534ffc3a3795fc9d4be9 (diff) | |
download | mediagoblin-2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5.tar.lz mediagoblin-2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5.tar.xz mediagoblin-2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5.zip |
Fiy python2.7'ism (#566)
The oauth plugin used timedelta.total_seconds which was introduced
in python 2.7 only. To preserve backwards compatability, we simply
calculate the time difference in seconds manually.
I considered monkeypatching total_seconds to the timedelta object,
but it is a built-in type written in C (I believe) and modifying
attributes failed horribly. Switch this to use total_seconds once we
require python 2.7 as minimum version.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'docs/source')
0 files changed, 0 insertions, 0 deletions