summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sphinx/builders/__init__.py2
-rw-r--r--sphinx/builders/changes.py2
-rw-r--r--sphinx/builders/epub.py2
-rw-r--r--sphinx/builders/html.py4
-rw-r--r--sphinx/builders/latex.py2
-rw-r--r--sphinx/builders/text.py2
-rw-r--r--sphinx/config.py2
-rw-r--r--sphinx/environment.py2
-rw-r--r--sphinx/ext/autosummary/generate.py2
-rw-r--r--sphinx/ext/graphviz.py2
-rw-r--r--sphinx/ext/pngmath.py2
-rw-r--r--sphinx/jinja2glue.py2
-rw-r--r--sphinx/quickstart.py2
-rw-r--r--sphinx/util/__init__.py2
-rw-r--r--sphinx/util/osutil.py (renamed from sphinx/util/os.py)4
-rw-r--r--sphinx/writers/latex.py2
16 files changed, 18 insertions, 18 deletions
diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py
index 08db6ca52..32236a667 100644
--- a/sphinx/builders/__init__.py
+++ b/sphinx/builders/__init__.py
@@ -16,8 +16,8 @@ from os import path
from docutils import nodes
from sphinx import package_dir, locale
-from sphinx.util.os import SEP, ENOENT, relative_uri
from sphinx.environment import BuildEnvironment
+from sphinx.util.osutil import SEP, ENOENT, relative_uri
from sphinx.util.console import bold, purple, darkgreen, term_width_line
# side effect: registers roles and directives
diff --git a/sphinx/builders/changes.py b/sphinx/builders/changes.py
index 63e8084ee..0571246ac 100644
--- a/sphinx/builders/changes.py
+++ b/sphinx/builders/changes.py
@@ -15,9 +15,9 @@ from cgi import escape
from sphinx import package_dir
from sphinx.util import copy_static_entry
-from sphinx.util.os import ensuredir, os_path
from sphinx.theming import Theme
from sphinx.builders import Builder
+from sphinx.util.osutil import ensuredir, os_path
from sphinx.util.console import bold
diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py
index df5c66f20..6694c8afd 100644
--- a/sphinx/builders/epub.py
+++ b/sphinx/builders/epub.py
@@ -18,7 +18,7 @@ import zipfile
from docutils import nodes
from sphinx.builders.html import StandaloneHTMLBuilder
-from sphinx.util.os import EEXIST
+from sphinx.util.osutil import EEXIST
# (Fragment) templates from which the metainfo files content.opf, toc.ncx,
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index f3f861bcf..ab3e5544b 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -29,8 +29,8 @@ from docutils.readers.doctree import Reader as DoctreeReader
from sphinx import package_dir, __version__
from sphinx.util import copy_static_entry
-from sphinx.util.os import SEP, os_path, relative_uri, ensuredir, movefile, \
- ustrftime, copyfile
+from sphinx.util.osutil import SEP, os_path, relative_uri, ensuredir, \
+ movefile, ustrftime, copyfile
from sphinx.util.nodes import inline_all_toctrees
from sphinx.util.matching import patmatch, compile_matchers
from sphinx.util.pycompat import any
diff --git a/sphinx/builders/latex.py b/sphinx/builders/latex.py
index 8b02699aa..21771327f 100644
--- a/sphinx/builders/latex.py
+++ b/sphinx/builders/latex.py
@@ -19,10 +19,10 @@ from docutils.frontend import OptionParser
from sphinx import package_dir, addnodes
from sphinx.util import texescape
-from sphinx.util.os import SEP, copyfile
from sphinx.builders import Builder
from sphinx.environment import NoUri
from sphinx.util.nodes import inline_all_toctrees
+from sphinx.util.osutil import SEP, copyfile
from sphinx.util.console import bold, darkgreen
from sphinx.writers.latex import LaTeXWriter
diff --git a/sphinx/builders/text.py b/sphinx/builders/text.py
index be3e997a5..092a1d97a 100644
--- a/sphinx/builders/text.py
+++ b/sphinx/builders/text.py
@@ -14,8 +14,8 @@ from os import path
from docutils.io import StringOutput
-from sphinx.util.os import ensuredir, os_path
from sphinx.builders import Builder
+from sphinx.util.osutil import ensuredir, os_path
from sphinx.writers.text import TextWriter
diff --git a/sphinx/config.py b/sphinx/config.py
index 9f8256f41..566132b57 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -14,7 +14,7 @@ import re
from os import path
from sphinx.errors import ConfigError
-from sphinx.util.os import make_filename
+from sphinx.util.osutil import make_filename
nonascii_re = re.compile(r'[\x80-\xff]')
diff --git a/sphinx/environment.py b/sphinx/environment.py
index fd1938a4f..0c83bb4f6 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -36,8 +36,8 @@ from docutils.transforms.parts import ContentsFilter
from sphinx import addnodes
from sphinx.util import url_re, get_matching_docs, docname_join, \
FilenameUniqDict
-from sphinx.util.os import movefile, SEP, ustrftime
from sphinx.util.nodes import clean_astext
+from sphinx.util.osutil import movefile, SEP, ustrftime
from sphinx.util.matching import compile_matchers
from sphinx.errors import SphinxError
from sphinx.directives import additional_xref_types
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py
index 0dd696b64..66a124d27 100644
--- a/sphinx/ext/autosummary/generate.py
+++ b/sphinx/ext/autosummary/generate.py
@@ -27,8 +27,8 @@ from jinja2 import FileSystemLoader, TemplateNotFound
from jinja2.sandbox import SandboxedEnvironment
from sphinx.ext.autosummary import import_by_name, get_documenter
-from sphinx.util.os import ensuredir
from sphinx.jinja2glue import BuiltinTemplateLoader
+from sphinx.util.osutil import ensuredir
def main(argv=sys.argv):
usage = """%prog [OPTIONS] SOURCEFILE ..."""
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py
index 0003654ed..106de7a65 100644
--- a/sphinx/ext/graphviz.py
+++ b/sphinx/ext/graphviz.py
@@ -24,7 +24,7 @@ from docutils import nodes
from docutils.parsers.rst import directives
from sphinx.errors import SphinxError
-from sphinx.util.os import ensuredir, ENOENT, EPIPE
+from sphinx.util.osutil import ensuredir, ENOENT, EPIPE
from sphinx.util.compat import Directive
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 49f7b96d0..93fa301d8 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -23,8 +23,8 @@ except ImportError:
from docutils import nodes
from sphinx.errors import SphinxError
-from sphinx.util.os import ensuredir, ENOENT
from sphinx.util.png import read_png_depth, write_png_depth
+from sphinx.util.osutil import ensuredir, ENOENT
from sphinx.ext.mathbase import setup_math as mathbase_setup, wrap_displaymath
class MathExtError(SphinxError):
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py
index 2d2ca6edb..cb9924871 100644
--- a/sphinx/jinja2glue.py
+++ b/sphinx/jinja2glue.py
@@ -17,8 +17,8 @@ from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, \
from jinja2.utils import open_if_exists
from jinja2.sandbox import SandboxedEnvironment
-from sphinx.util.os import mtimes_of_files
from sphinx.application import TemplateBridge
+from sphinx.util.osutil import mtimes_of_files
def _tobool(val):
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index 49f330f55..269170535 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -15,7 +15,7 @@ from os import path
TERM_ENCODING = getattr(sys.stdin, 'encoding', None)
from sphinx import __version__
-from sphinx.util.os import make_filename
+from sphinx.util.osutil import make_filename
from sphinx.util.console import purple, bold, red, turquoise, \
nocolor, color_terminal
from sphinx.util import texescape
diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py
index 12dff9d06..876d3fda8 100644
--- a/sphinx/util/__init__.py
+++ b/sphinx/util/__init__.py
@@ -28,7 +28,7 @@ import sphinx
# import other utilities; partly for backwards compatibility, so don't
# prune unused ones indiscriminately
-from sphinx.util.os import SEP, os_path, relative_uri, ensuredir, walk, \
+from sphinx.util.osutil import SEP, os_path, relative_uri, ensuredir, walk, \
mtimes_of_files, movefile, copyfile, copytimes, make_filename, ustrftime
from sphinx.util.nodes import nested_parse_with_titles, split_explicit_title, \
explicit_title_re, caption_ref_re
diff --git a/sphinx/util/os.py b/sphinx/util/osutil.py
index 0f3b1852d..beab38cbd 100644
--- a/sphinx/util/os.py
+++ b/sphinx/util/osutil.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
- sphinx.util.os
- ~~~~~~~~~~~~~~
+ sphinx.util.osutil
+ ~~~~~~~~~~~~~~~~~~
Operating system-related utility functions for Sphinx.
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 6d0e9d4ff..86f0725de 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -23,7 +23,7 @@ from sphinx import addnodes
from sphinx import highlighting
from sphinx.errors import SphinxError
from sphinx.locale import admonitionlabels, versionlabels
-from sphinx.util.os import ustrftime
+from sphinx.util.osutil import ustrftime
from sphinx.util.texescape import tex_escape_map
from sphinx.util.smartypants import educateQuotesLatex