From 182c00096151a4dcd92bcf3b020d151c3b68548e Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Wed, 13 Mar 2019 09:24:01 +0100 Subject: [PATCH] use built-in function next. Fixes #82 --- src/plone/recipe/zope2instance/ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/recipe/zope2instance/ctl.py b/src/plone/recipe/zope2instance/ctl.py index 04fece52..d90319d4 100644 --- a/src/plone/recipe/zope2instance/ctl.py +++ b/src/plone/recipe/zope2instance/ctl.py @@ -603,7 +603,7 @@ def go(arg): # so that we can split on spaces while respecting quotes. tup = self.options.args if len(tup) == 1: - tup = csv.reader(tup, delimiter=' ').next() + tup = next(csv.reader(tup, delimiter=' ')) # Remove -c and add command name as sys.argv[0] cmd = ['import sys',