From 50ad9d3ad2810ff39ee87c8d36f3bee46a6ca0f3 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 31 Mar 2014 20:14:55 +0200 Subject: Migrate to six and get rid of 2to3. Now we've got really a single code base for both Python 2 and 3. For now it just adds a dependency to six which should be available on most systems. However, if it turns out to switch back to no dependencies it should be fairly easy to replace six by some conditional imports. --- sqlparse/engine/grouping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlparse/engine') diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py index b43ccc7..cebf8dc 100644 --- a/sqlparse/engine/grouping.py +++ b/sqlparse/engine/grouping.py @@ -50,7 +50,7 @@ def _group_matching(tlist, start_ttype, start_value, end_ttype, end_value, cls, include_semicolon=False, recurse=False): def _find_matching(i, tl, stt, sva, ett, eva): depth = 1 - for n in xrange(i, len(tl.tokens)): + for n in range(i, len(tl.tokens)): t = tl.tokens[n] if t.match(stt, sva): depth += 1 -- cgit v1.2.1