Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpeter1 authored Jul 23, 2024
1 parent 2b7cdaf commit 063fee3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions csvkit/utilities/csvsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
from csvkit.cli import CSVKitUtility, isatty
from sqlalchemy import create_engine, dialects

try:
import importlib_metadata
except ImportError:
import importlib.metadata as importlib_metadata

DIALECTS = dialects.__all__ + tuple(e.name for e in importlib_metadata.entry_points(group='sqlalchemy.dialects'))


def parse_list(pairs):
options = {}
Expand All @@ -20,14 +27,6 @@ def parse_list(pairs):
return options


try:
import importlib_metadata
except ImportError:
import importlib.metadata as importlib_metadata

DIALECTS = dialects.__all__ + tuple(e.name for e in importlib_metadata.entry_points(group='sqlalchemy.dialects'))


class CSVSQL(CSVKitUtility):
description = 'Generate SQL statements for one or more CSV files, or execute those statements directly on a ' \
'database, and execute one or more SQL queries.'
Expand Down

0 comments on commit 063fee3

Please sign in to comment.