-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Refactor import datetime
as import datetime as dt
#569
Conversation
Codecov Report
@@ Coverage Diff @@
## master #569 +/- ##
=======================================
Coverage 92.40% 92.40%
=======================================
Files 28 28
Lines 2938 2938
=======================================
Hits 2715 2715
Misses 223 223
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I'm a bit hesitant to touch dbfpy too much, as it is vendored code. I we were to update the vendored code to a more recent version, we would face a big diff. What do you think? |
Good point, I'll revert. Shall we also rename the For example, pip has |
ada7dd1
to
a63cb1a
Compare
Makes sense, as long as this doesn't introduce compatibility issues (but it should not at first sight). |
Hmm, I guess in theory someone could be doing |
That could happen, but frankly I don't see the use case. I let you judge if moving the package is worth it, considering that minor breakage. |
Normally this sort of thing should be preceded by a deprecation warning, but I think we're fine here. And the next release is set to be a major release anyway for #558, so let's go for it. |
Follow on from #568 (comment).
Refactor
import datetime
asimport datetime as dt
to avoid ambiguity between thedatetime
module and class: