From f5703dc3e55008b03aad4db8d8f3c5fa12dbae86 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 1 Dec 2017 19:53:30 -0800 Subject: Use builtin function next() throughout project Available since Python 2.6. Use of .next() is deprecated and not supported in Python 3. Forward compatible with modern Python. https://docs.python.org/2/library/functions.html#next --- lib/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sql.py') diff --git a/lib/sql.py b/lib/sql.py index 5dfe7c8..849b25f 100644 --- a/lib/sql.py +++ b/lib/sql.py @@ -276,7 +276,7 @@ class SQL(Composable): rv = [] it = iter(seq) try: - rv.append(it.next()) + rv.append(next(it)) except StopIteration: pass else: -- cgit v1.2.1