summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-06-25 14:21:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-06-25 14:21:53 -0400
commitcdfef65dd6ce7a9296617171b9125314999b7a9d (patch)
tree41c57b94e357962306626c5346e5dec8f95e946b /lib/sqlalchemy/sql
parenta1a58219c29daf82db425fcdca5ce212d23e4ff8 (diff)
downloadsqlalchemy-cdfef65dd6ce7a9296617171b9125314999b7a9d.tar.gz
add 2.5 compat for next()
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 0dac0f3d6..6fdb943d0 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -286,7 +286,7 @@ class SQLCompiler(engine.Compiled):
poscount = itertools.count(1)
self.string = re.sub(
r'\[_POSITION\]',
- lambda m:str(next(poscount)),
+ lambda m:str(util.next(poscount)),
self.string)
@util.memoized_property