diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-31 23:04:24 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-10-31 23:05:07 +0900 |
commit | d23f29f301648ba9f84641fb44ebab43b07deb48 (patch) | |
tree | b98d7f501c5f5dd953a9ba99f04da68487847140 /sphinx/io.py | |
parent | 07220140ac18894d6102042ba3633df985df4942 (diff) | |
download | sphinx-git-d23f29f301648ba9f84641fb44ebab43b07deb48.tar.gz |
Refactor publishment
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index 8813cb3b6..9b27e04fd 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -143,6 +143,11 @@ class SphinxDummyWriter(UnfilteredWriter): pass +def SphinxDummySourceClass(source, *args, **kwargs): + """Bypass source object as is to cheat Publisher.""" + return source + + class SphinxFileInput(FileInput): def __init__(self, app, env, *args, **kwds): # type: (Sphinx, BuildEnvironment, Any, Any) -> None |