Skip to content

Commit ffe5f44

Browse files
author
James McKinney
committed
Merge pull request #601 from bryant1410/patch-3
Remove unnecessary lists creation
2 parents 27d817e + 2cd2b22 commit ffe5f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csvkit/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def make_column(column, no_constraints=False):
3939
if column.type in column_types:
4040
sql_column_type = column_types[column.type]
4141
elif column.type is int:
42-
column_max = max([v for v in column if v is not None])
43-
column_min = min([v for v in column if v is not None])
42+
column_max = max(v for v in column if v is not None)
43+
column_min = min(v for v in column if v is not None)
4444

4545
if column_max > SQL_INTEGER_MAX or column_min < SQL_INTEGER_MIN:
4646
sql_column_type = BigInteger

0 commit comments

Comments
 (0)