def get_total_seconds(timedelta):
return ((timedelta.microseconds + (<EOL>timedelta.seconds +<EOL>timedelta.days * <NUM_LIT> * <NUM_LIT> * <NUM_LIT><EOL>) * <NUM_LIT:10>**<NUM_LIT:6>) / float(<NUM_LIT:10>**<NUM_LIT:6>))<EOL>
Backported for Python < 2.7

See http://docs.python.org/library/datetime.html.