<s> from __future__ import absolute_import <EOL> import sys <EOL> def _total_seconds_27 ( td ) : <EOL> return td . total_seconds ( ) <EOL> def _total_seconds_26 ( td ) : <EOL> return ( td . microseconds + ( td . seconds + td . days * <NUM_LIT> * <NUM_LIT> ) * <NUM_LIT> ) / <NUM_LIT> <EOL> version = '<STR_LIT>' . format ( * sys . version_info [ : <NUM_LIT:3> ] ) <EOL> if version < '<STR_LIT>' : <EOL> total_seconds = _total_seconds_26 <EOL> else : <EOL> total_seconds = _total_seconds_27 <EOL> def is_timestamp ( value ) : <EOL> try : <EOL> float ( value ) <EOL> return True <EOL> except : <EOL> return False <EOL> try : <EOL> basestring <EOL> def isstr ( s ) : <EOL> return isinstance ( s , basestring ) <EOL> except NameError : <EOL> def isstr ( s ) : <EOL> return isinstance ( s , str ) <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] </s>
