summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authortogakushi <togakushi@localhost>2011-11-26 00:20:11 +0900
committertogakushi <togakushi@localhost>2011-11-26 00:20:11 +0900
commit1436989b6bccd1c2224465b33cd2a75ca59f95b8 (patch)
tree463ea963b6a1ab8cbb0b7717a090235c1a28ccf2 /sphinx/util/osutil.py
parent913bfd8e0cdc890fe5036a2a0b2db8a41aad4065 (diff)
downloadsphinx-git-1436989b6bccd1c2224465b33cd2a75ca59f95b8.tar.gz
Changed Conditional Expressions
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py7
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