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

Use public datetime module instead of _datetime #251

Merged
merged 1 commit into from Jan 18, 2023
Merged

Use public datetime module instead of _datetime #251

merged 1 commit into from Jan 18, 2023

Conversation

otethal
Copy link
Contributor

@otethal otethal commented Jan 18, 2023

The '_datetime' module is an implementation detail of CPython, applications and libraries should use the public 'datetime' module instead. Using the private one makes pydriller unusable in alternative python implementations.

@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Merging #251 (1a2ecb3) into master (72a2c75) will decrease coverage by 0.20%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
- Coverage   97.30%   97.11%   -0.20%     
==========================================
  Files          15       15              
  Lines        1040     1040              
==========================================
- Hits         1012     1010       -2     
- Misses         28       30       +2     
Impacted Files Coverage Δ
pydriller/domain/commit.py 97.05% <100.00%> (ø)
pydriller/repository.py 93.06% <0.00%> (-1.99%) ⬇️

@ishepard
Copy link
Owner

Thanks! I was wondering why the heck I did it, and blamed the file. That line was inserted in the FIRST EVER commit of Pydriller 😄 who knows what I was thinking 5 years ago.

@ishepard ishepard merged commit da211e8 into ishepard:master Jan 18, 2023
@otethal otethal deleted the ot/fix_import_datetime branch January 18, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants