]> arthur.barton.de Git - bup.git/commit - lib/bup/t/thelpers.py
Only define helpers.next() if Python's isn't new enough.
authorRob Browning <rlb@defaultvalue.org>
Thu, 8 May 2014 16:50:29 +0000 (11:50 -0500)
committerRob Browning <rlb@defaultvalue.org>
Thu, 8 May 2014 17:47:12 +0000 (12:47 -0500)
commitc02dfa3dc02ff4a389237546d0f4d4c245f24356
treec9826c53b3195a1b08c24855d466b174c69e9aec
parent31574fc6213e219436b3c920ad27e3487e6b1430
Only define helpers.next() if Python's isn't new enough.

Since helpers.next() now matches the Python built-in's semantics
(since Python 2.6), just rely on the built-in when it's new enough.
Otherwise, set up a matching replacement.

Borrow the fallback next documentation string from Python.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py
lib/bup/t/thelpers.py