diff options
author | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-06-16 22:57:00 +0000 |
---|---|---|
committer | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-06-16 22:57:00 +0000 |
commit | ab62eef84e0082d21872b34b8941dad85706a0fc (patch) | |
tree | 7a4e16f9be1613b998000531d4897055e4f47117 /sandbox/py-rest-doc/sphinx/environment.py | |
parent | 3f9330646c91f9b3488ddb22dc8c1c3902704fad (diff) | |
download | docutils-ab62eef84e0082d21872b34b8941dad85706a0fc.tar.gz |
Restructure "special" file handling.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5245 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/environment.py')
-rw-r--r-- | sandbox/py-rest-doc/sphinx/environment.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sandbox/py-rest-doc/sphinx/environment.py b/sandbox/py-rest-doc/sphinx/environment.py index 46cae7d17..2e7a3a857 100644 --- a/sandbox/py-rest-doc/sphinx/environment.py +++ b/sandbox/py-rest-doc/sphinx/environment.py @@ -748,10 +748,9 @@ class BuildEnvironment: def get_real_filename(self, filename): """ - Pass this function a filename without .rst extension to - get the real filename. This also resolves the special - `index.rst` files. If the file does not exist the return - value will be `None`. + Pass this function a filename without .rst extension to get the real + filename. This also resolves the special `index.rst` files. If the file + does not exist the return value will be `None`. """ for rstname in filename + '.rst', filename + path.sep + 'index.rst': if rstname in self.all_files: |