Skip to content

Commit 6d66421

Browse files
jsorefandialbrecht
authored andcommitted
Correct spelling (andialbrecht#407)
* spelling: choice * spelling: duplicate * spelling: identifier * spelling: issue * spelling: parenthesis * spelling: split * spelling: statements
1 parent c25940d commit 6d66421

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

CHANGELOG

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Bug Fixes
8989

9090
* Fix a regression to parse streams again (issue273, reported and
9191
test case by gmccreight).
92-
* Improve Python 2/3 compatibility when using parsestream (isseu190,
92+
* Improve Python 2/3 compatibility when using parsestream (issue190,
9393
by phdru).
9494
* Improve splitting of PostgreSQL functions (issue277).
9595

@@ -177,7 +177,7 @@ Bug Fixes
177177

178178
* Fix a regression in get_alias() introduced in 0.1.15 (issue185).
179179
* Fix a bug in the splitter regarding DECLARE (issue193).
180-
* sqlformat command line tool doesn't duplicat newlines anymore (issue191).
180+
* sqlformat command line tool doesn't duplicate newlines anymore (issue191).
181181
* Don't mix up MySQL comments starting with hash and MSSQL
182182
temp tables (issue192).
183183
* Statement.get_type() now ignores comments at the beginning of
@@ -315,7 +315,7 @@ Enhancements
315315
* Add STRAIGHT_JOIN statement (by Yago Riveiro).
316316
* Function.get_parameters() now returns the parameter if only one parameter is
317317
given (issue94, by wayne.wuw).
318-
* sqlparse.split() now removes leading and trailing whitespaces from splitted
318+
* sqlparse.split() now removes leading and trailing whitespaces from split
319319
statements.
320320
* Add USE as keyword token (by mulos).
321321
* Improve parsing of PEP249-style placeholders (issue103).
@@ -443,7 +443,7 @@ Bug Fixes
443443

444444
* Fixed incorrect detection of keyword fragments embed in names (issue7,
445445
reported and initial patch by andyboyko).
446-
* Stricter detection of identfier aliases (issue8, reported by estama).
446+
* Stricter detection of identifier aliases (issue8, reported by estama).
447447
* WHERE grouping consumed closing parenthesis (issue9, reported by estama).
448448
* Fixed an issue with trailing whitespaces (reported by Kris).
449449
* Better detection of escaped single quotes (issue13, reported by

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_version():
4040
[u'select * from foo; ', u'select * from bar;']
4141
4242
43-
Formatting statemtents::
43+
Formatting statements::
4444
4545
>>> sql = 'select * from foo where id in (select id from bar);'
4646
>>> print sqlparse.format(sql, reindent=True, keyword_case='upper')

sqlparse/filters/others.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_next_comment():
2121
pidx, prev_ = tlist.token_prev(tidx, skip_ws=False)
2222
nidx, next_ = tlist.token_next(tidx, skip_ws=False)
2323
# Replace by whitespace if prev and next exist and if they're not
24-
# whitespaces. This doesn't apply if prev or next is a paranthesis.
24+
# whitespaces. This doesn't apply if prev or next is a parenthesis.
2525
if (prev_ is None or next_ is None or
2626
prev_.is_whitespace or prev_.match(T.Punctuation, '(') or
2727
next_.is_whitespace or next_.match(T.Punctuation, ')')):

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_valid_args(filepath):
3232
assert sqlparse.cli.main([path, '-r']) is not None
3333

3434

35-
def test_invalid_choise(filepath):
35+
def test_invalid_choice(filepath):
3636
path = filepath('function.sql')
3737
with pytest.raises(SystemExit):
3838
sqlparse.cli.main([path, '-l', 'Spanish'])

tests/test_regressions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def test_issue193_splitting_function():
250250
RETURN x;
251251
END;
252252
SELECT * FROM a.b;"""
253-
splitted = sqlparse.split(sql)
254-
assert len(splitted) == 2
253+
statements = sqlparse.split(sql)
254+
assert len(statements) == 2
255255

256256

257257
def test_issue194_splitting_function():
@@ -264,8 +264,8 @@ def test_issue194_splitting_function():
264264
RETURN x;
265265
END;
266266
SELECT * FROM a.b;"""
267-
splitted = sqlparse.split(sql)
268-
assert len(splitted) == 2
267+
statements = sqlparse.split(sql)
268+
assert len(statements) == 2
269269

270270

271271
def test_issue186_get_type():

0 commit comments

Comments
 (0)