diff options
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: |