From cdfef65dd6ce7a9296617171b9125314999b7a9d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 25 Jun 2012 14:21:53 -0400 Subject: add 2.5 compat for next() --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') 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 -- cgit v1.2.1