summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2015-03-16 23:11:23 +0900
committershimizukawa <shimizukawa@gmail.com>2015-03-16 23:11:23 +0900
commitdbfc72a4510b0c88951b706248d92b1fcaf52e3c (patch)
treee24a08e903f722d71d2e1d4d2ccc9e93cd682392 /sphinx/util/osutil.py
parentd699b1d3267e421a6661c834092a92e987b196ed (diff)
downloadsphinx-git-dbfc72a4510b0c88951b706248d92b1fcaf52e3c.tar.gz
refactoring: move i18n related function from osutil into i18n
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index 46f908292..20c6a90cc 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -17,7 +17,6 @@ import time
import errno
import locale
import shutil
-import gettext
from os import path
import contextlib
@@ -170,26 +169,6 @@ def safe_relpath(path, start=None):
return path
-def find_catalog(docname, compaction):
- if compaction:
- ret = docname.split(SEP, 1)[0]
- else:
- ret = docname
-
- return ret
-
-
-def find_catalog_files(docname, srcdir, locale_dirs, lang, compaction):
- if not(lang and locale_dirs):
- return []
-
- domain = find_catalog(docname, compaction)
- files = [gettext.find(domain, path.join(srcdir, dir_), [lang])
- for dir_ in locale_dirs]
- files = [path.relpath(f, srcdir) for f in files if f]
- return files
-
-
fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding()