diff options
author | togakushi <togakushi@localhost> | 2011-11-26 00:20:11 +0900 |
---|---|---|
committer | togakushi <togakushi@localhost> | 2011-11-26 00:20:11 +0900 |
commit | d0f5de9291239ade5d1aa3d95b9be822cbec0048 (patch) | |
tree | 17309c946b851612a0ccb3cd69400bf393d9e121 /sphinx/util/osutil.py | |
parent | dcd3408b8ab11d6677313748a0f95c9b02799be0 (diff) | |
download | sphinx-git-d0f5de9291239ade5d1aa3d95b9be822cbec0048.tar.gz |
Changed Conditional Expressions
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index ee6a6c858..5becc37df 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -142,4 +142,9 @@ def safe_relpath(path, start=None): return path def find_catalog(docname, compaction): - return docname.split(SEP, 1)[0] if compaction else docname + if compaction: + ret = docname.split(SEP, 1)[0] + else: + ret = docname + + return ret |