summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-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