Skip to content

Commit a89fc05

Browse files
committed
refactored an import
1 parent 8160e00 commit a89fc05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cs50/sql.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,14 @@ def _escape(self, value):
282282
https://docs.sqlalchemy.org/en/latest/core/type_api.html#sqlalchemy.types.TypeEngine.literal_processor
283283
"""
284284

285+
# Lazily import
286+
import sqlalchemy
287+
285288
def __escape(value):
286289

287290
# Lazily import
288291
import datetime
289292
import sqlalchemy
290-
import sqlparse
291293

292294
# bool
293295
if type(value) is bool:

0 commit comments

Comments
 (0)