From d54d2082778d0aba69ba220205c3451de1442f14 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Thu, 23 Nov 2017 15:05:05 +0300 Subject: [PATCH] Py3: fix generator __next__ calls --- lattice2Subsequencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice2Subsequencer.py b/lattice2Subsequencer.py index 653237e..71873fb 100644 --- a/lattice2Subsequencer.py +++ b/lattice2Subsequencer.py @@ -182,7 +182,7 @@ def Subsequence_basic(link, traversal, loop): element_shape = element_extractors[element_type_string](compound)[index] # convert global element index to index in child - i_first_child, element_type_string, i_in_child = getIndexesIntoList(element_shape, children).next() + i_first_child, element_type_string, i_in_child = next(getIndexesIntoList(element_shape, children)) if loop == 'All from first': i_first_child = 0