diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2014-03-31 20:14:55 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-01-17 09:26:32 +0100 |
| commit | 50ad9d3ad2810ff39ee87c8d36f3bee46a6ca0f3 (patch) | |
| tree | d13e34a09e50d3c00e38d2401d0f27ce27ccb8c5 /sqlparse/engine | |
| parent | 2898498465baf21ba983b7cbdcfc6408bfaa12c0 (diff) | |
| download | sqlparse-50ad9d3ad2810ff39ee87c8d36f3bee46a6ca0f3.tar.gz | |
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.
Diffstat (limited to 'sqlparse/engine')
| -rw-r--r-- | sqlparse/engine/grouping.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
