]> arthur.barton.de Git - bup.git/commit
wvtest.py: add a fallback definition of relpath() for Python < 2.6.
authorThomas Haller <thom311@gmail.com>
Sun, 3 Mar 2013 19:31:57 +0000 (20:31 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 23 Mar 2013 19:31:57 +0000 (14:31 -0500)
commit80a4ba9a5fdc430656f62cd11f1c3785c156f832
treec8b44d8b0bf8a9881958bbbddb72d517435a718f
parentac2d5af359adbc9b16da830239a4eee53b691c02
wvtest.py: add a fallback definition of relpath() for Python < 2.6.

Since bup still supports Python 2.5 and relpath was added to Python in
2.6, add an os.path.relpath replacement, adapted from CPython source
(tag v2.6, file Lib/posixpath.py, hg-commit 95fff5a6a276).

Signed-off-by: Thomas Haller <thom311@gmail.com>
[rlb@defaultvalue.org: update LICENSE and add comment to code about
 updating LICENSE.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
LICENSE
wvtest.py