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

Fix deprecations for Python 3.12 #15

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Fix deprecations for Python 3.12 #15

merged 2 commits into from
Oct 9, 2023

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Aug 6, 2023

Replace deprecated datetime.utcnow() with datetime.now(tz=timezone.utc).replace(tzinfo=None) and move calls into function body.

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #15 (1cb3fc6) into main (1b93995) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #15   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          142       144    +2     
=========================================
+ Hits           142       144    +2     
Files Coverage Δ
pytraccar/client.py 100.00% <100.00%> (ø)

@ludeeus ludeeus merged commit 7210937 into ludeeus:main Oct 9, 2023
6 checks passed
@cdce8p cdce8p deleted the 312-deprecation branch October 9, 2023 10:48
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.

2 participants