summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-06-03 13:25:32 +0200
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-06-03 13:25:32 +0200
commit49b41027a3cb88b74f9d4ffb1adb34367c7763ce (patch)
treeb44e4b16ac79a82a1c31d757fda18f21aca7e2a0
parentb97a974e1c3b77118b50bd72a29c7046c7432450 (diff)
downloadsqlparse-49b41027a3cb88b74f9d4ffb1adb34367c7763ce.tar.gz
Clean-up
-rw-r--r--sqlparse/engine/grouping.py7
-rw-r--r--sqlparse/filters.py1
-rw-r--r--tests/test_format.py1
-rw-r--r--tests/test_issue_50.py1
4 files changed, 0 insertions, 10 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 7b8b6b4..b82a317 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -237,12 +237,6 @@ def group_identifier_list(tlist):
# Check the next token
next_ = tlist.token_next(after)
while next_:
-# # Next token is another comma or an identifier list keyword
-# if next_.match(T.Punctuation, ','):
-# return next_
-#
-# next_ = tlist.token_next(next_)
-
if next_.value != ',':
passed = False
for func in fend1_funcs:
@@ -251,7 +245,6 @@ def group_identifier_list(tlist):
break
if not passed:
- print "not passed", repr(next_)
break
after = next_
diff --git a/sqlparse/filters.py b/sqlparse/filters.py
index bcfb776..50c7911 100644
--- a/sqlparse/filters.py
+++ b/sqlparse/filters.py
@@ -426,7 +426,6 @@ class ReindentFilter:
if not tlist.within(sql.Function):
# Get identifiers from the tlist
identifiers = list(tlist.get_identifiers())
- print identifiers
# Split the identifier list if we have more than one identifier
if len(identifiers) > 1:
diff --git a/tests/test_format.py b/tests/test_format.py
index c614fce..0ec2192 100644
--- a/tests/test_format.py
+++ b/tests/test_format.py
@@ -161,7 +161,6 @@ class TestFormatReindent(TestCaseBase):
def test_identifier_list(self):
f = lambda sql: sqlparse.format(sql, reindent=True)
s = 'select foo, bar, baz from table1, table2 where 1 = 2'
- print f(s)
self.ndiffAssertEqual(f(s), '\n'.join(['select foo,',
' bar,',
' baz',
diff --git a/tests/test_issue_50.py b/tests/test_issue_50.py
index 008ab88..d61b79a 100644
--- a/tests/test_issue_50.py
+++ b/tests/test_issue_50.py
@@ -12,7 +12,6 @@ from sqlparse import format
class Issue_50(TestCase):
def test_issue(self):
result = format("SELECT foo, null bar, car FROM dual", reindent=True)
- print result
self.assertEqual(result, "SELECT foo,\n"
" null bar,\n"
" car\n"