There was an error while loading. Please reload this page.
1 parent bec7330 commit 7057fffCopy full SHA for 7057fff
2 files changed
Lib/sqlite3/dbapi2.py
@@ -36,15 +36,15 @@
36
Timestamp = datetime.datetime
37
38
def DateFromTicks(ticks):
39
- import time
+ import time # Lazy, to improve import time
40
return Date(*time.localtime(ticks)[:3])
41
42
def TimeFromTicks(ticks):
43
44
return Time(*time.localtime(ticks)[3:6])
45
46
def TimestampFromTicks(ticks):
47
48
return Timestamp(*time.localtime(ticks)[:6])
49
50
Misc/NEWS.d/next/Library/2025-01-21-14-51-44.gh-issue-118761.Z0F-d5.rst
@@ -1 +1 @@
1
-Improve import time of :mod:`sqlite3` by around 2 times. Patch by Jiahao Li.
+Halve the import time of :mod:`sqlite3`. Patch by Jiahao Li.
0 commit comments