Skip to content

Commit

Permalink
Formatting list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
dericke committed Jan 25, 2021
1 parent 63e7737 commit fe184e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -81,7 +81,10 @@ def check_comments_in_sql(raw_sql_input):
if not line.strip().startswith('--'):
if '--' in line:
comments = re.finditer(r'--', line)
comment_positions = [match.start() for match in comments]
comment_positions = [
match.start()
for match in comments
]
identifiers = re.finditer(r'"(?:[^"]|"")*"', line)
quotes = re.finditer(r"'(?:[^']|'')*'", line)
quote_positions = []
Expand Down

0 comments on commit fe184e8

Please sign in to comment.