1
0
Fork 0

Fix simple typo: thows -> throws

Closes #1128
This commit is contained in:
Tim Gates 2019-12-05 08:35:22 +11:00
parent 69b2da9f8e
commit 8456dcb18f
No known key found for this signature in database
GPG Key ID: AE3BE0D53823CF05
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def find_prev_keyword(sql, n_skip=0):
):
# Find the location of token t in the original parsed statement
# We can't use parsed.token_index(t) because t may be a child token
# inside a TokenList, in which case token_index thows an error
# inside a TokenList, in which case token_index throws an error
# Minimal example:
# p = sqlparse.parse('select * from foo where bar')
# t = list(p.flatten())[-3] # The "Where" token