]> arthur.barton.de Git - bup.git/commit
Drop helpers.next() and just use Python's built-in.
authorAidan Hobson Sayers <aidanhs@cantab.net>
Thu, 12 Dec 2013 20:29:22 +0000 (20:29 +0000)
committerRob Browning <rlb@defaultvalue.org>
Thu, 8 May 2014 17:45:47 +0000 (12:45 -0500)
commit31574fc6213e219436b3c920ad27e3487e6b1430
tree80ca0635801ddf82ce629f85cbd9cc8b7e23481e
parent2b0cffb5ac1f899568f711e10a027b8485c650b6
Drop helpers.next() and just use Python's built-in.

The python built-in 'next' function has an optional second parameter
that specifies what to return instead of excepting with StopIteration.
There is therefore no need for the function in helpers.py.

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
[rlb@defaultvalue.org: adjust commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/split-cmd.py
lib/bup/helpers.py