Repository navigation
Removing python2.6 workarounds - #6153
Conversation
5ae8e47 to
678918a
Compare
|
@taldcroft - Could you have a suggestion to revise this comment about python 3.1 and 3.2? https://github.com/astropy/astropy/blob/master/astropy/io/ascii/core.py#L144 I've removed that workaround looking subclassing, but that totally messed up all versions we support (2.7 & 3.4+) |
mhvk
left a comment
There was a problem hiding this comment.
Bad that we still had those in! One can be simplified even further...
| total_secs = lambda td: td.total_seconds() | ||
| total_secs = lambda td: td.total_seconds() | ||
|
|
||
| assert total_secs(dt) < 0.1 |
There was a problem hiding this comment.
I think we can even just make this
assert td.total_seconds(dt) < 0.1
3c6e1dd to
f2361f5
Compare
f2361f5 to
84661eb
Compare
|
@mhvk - Fixed. With 150K+ lines in astropy, no wonder a few of these always slip through. |
|
@bsipocz - the code comment you referenced is now wrong, and the underlying issue is that |
No description provided.