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

bpo-40799: Add _pydatetime module (Python datetime impl) #20472

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove datetime.sys when using _pydatetime
  • Loading branch information
vstinner committed Sep 4, 2020
commit c14d0d44ecd112b64d03bd195338fbdb05a4f9cb
4 changes: 2 additions & 2 deletions Lib/_pydatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import time as _time
import math as _math
import sys
import sys as _sys
from operator import index as _index

def _cmp(x, y):
Expand Down Expand Up @@ -1660,7 +1660,7 @@ def _fromtimestamp(cls, t, utc, tz):
# thus we can't perform fold detection for values of time less
# than the max time fold. See comments in _datetimemodule's
# version of this method for more details.
if t < max_fold_seconds and sys.platform.startswith("win"):
if t < max_fold_seconds and _sys.platform.startswith("win"):
return result

y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
Expand Down