Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify extract_seconds.py for python2.6 #93

Closed
wants to merge 1 commit into from
Closed

modify extract_seconds.py for python2.6 #93

wants to merge 1 commit into from

Conversation

chyojn
Copy link
Contributor

@chyojn chyojn commented Feb 11, 2014

python2.6: datetime.timedelta has no attribute total_seconds
nkrode/RedisLive#5

python2.6: datetime.timedelta has no attribute total_seconds
nkrode/RedisLive#5
@kloudkl
Copy link
Contributor

kloudkl commented Feb 11, 2014

if sys.version_info >= (2, 7):
    ...
else:
    ...

@shelhamer
Copy link
Member

I don't think it's unreasonable to require python2.7. If compatibility with other python versions is desired, it should be done by version comparison as suggested by @kloudkl .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants