diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2012-05-02 12:06:29 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2012-05-02 12:06:29 +0900 |
commit | 7e56be6f62d48354b8c91f9d0fdb0e2f48d5df97 (patch) | |
tree | 8fb4b14a6b9971a9d97552627667c0704e9d0292 /sphinx/util/osutil.py | |
parent | 48128c7b9b8eff5de97c1be61d071fef3a2bb1ea (diff) | |
download | sphinx-git-7e56be6f62d48354b8c91f9d0fdb0e2f48d5df97.tar.gz |
* fix for Python2.5: test failed by using os.path.relpath that introduced at Python-2.6.
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index 5becc37df..c5fee9d93 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -136,8 +136,9 @@ else: def safe_relpath(path, start=None): + from sphinx.util.pycompat import relpath try: - return os.path.relpath(path, start) + return relpath(path, start) except ValueError: return path |