diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2011-10-03 14:08:33 +0200 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2011-10-03 14:08:33 +0200 |
commit | 0f47e557872eb0ed2467b5bc4cf8a88118d75ad3 (patch) | |
tree | d81daf03022e85c35ba92de86122c3cb13eade8f /sphinx/util/osutil.py | |
parent | 77329bf4977fa8f5b1d539a72f4555e23b7d67c2 (diff) | |
download | sphinx-git-0f47e557872eb0ed2467b5bc4cf8a88118d75ad3.tar.gz |
Respect gettext_compact in message patching too.
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index e37d23954..ee6a6c858 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -141,5 +141,5 @@ def safe_relpath(path, start=None): except ValueError: return path -def find_catalog(docname, config): - return docname.split(SEP, 1)[0] if config.gettext_compact else docname +def find_catalog(docname, compaction): + return docname.split(SEP, 1)[0] if compaction else docname |