Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7057fff

Browse filesBrowse files
committed
Add Lazy import comment
1 parent bec7330 commit 7057fff
Copy full SHA for 7057fff

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎Lib/sqlite3/dbapi2.py

Copy file name to clipboardExpand all lines: Lib/sqlite3/dbapi2.py
+3-3Lines changed: 3 additions & 3 deletions
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

+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.