Skip to content

Commit 7057fff

Browse files
committed
Add Lazy import comment
1 parent bec7330 commit 7057fff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: Lib/sqlite3/dbapi2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
Timestamp = datetime.datetime
3737

3838
def DateFromTicks(ticks):
39-
import time
39+
import time # Lazy, to improve import time
4040
return Date(*time.localtime(ticks)[:3])
4141

4242
def TimeFromTicks(ticks):
43-
import time
43+
import time # Lazy, to improve import time
4444
return Time(*time.localtime(ticks)[3:6])
4545

4646
def TimestampFromTicks(ticks):
47-
import time
47+
import time # Lazy, to improve import time
4848
return Timestamp(*time.localtime(ticks)[:6])
4949

5050

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Improve import time of :mod:`sqlite3` by around 2 times. Patch by Jiahao Li.
1+
Halve the import time of :mod:`sqlite3`. Patch by Jiahao Li.

0 commit comments

Comments
 (0)