Skip to content

Commit

Permalink
use built-in function next. Fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 13, 2019
1 parent a650a72 commit 182c000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/recipe/zope2instance/ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 182c000

Please sign in to comment.