diff options
author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-09-25 23:38:27 +0000 |
---|---|---|
committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-09-25 23:38:27 +0000 |
commit | 43ad6eb70aa3e45d894253d74528f46d908f660d (patch) | |
tree | 2ce45c5311ed4a4e4a77632c9e3d4f7612337064 /docutils/io.py | |
parent | 94cc169e7c0806612a49326d79cd266e0a479ac0 (diff) | |
download | docutils-43ad6eb70aa3e45d894253d74528f46d908f660d.tar.gz |
removed dependency magic in FileInput,
removed add_dependency function (now in utils.DependencyList)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2646 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/io.py')
-rw-r--r-- | docutils/io.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/docutils/io.py b/docutils/io.py index 88082c6b6..d1117d8a7 100644 --- a/docutils/io.py +++ b/docutils/io.py @@ -166,7 +166,7 @@ class FileInput(Input): def __init__(self, source=None, source_path=None, encoding=None, error_handler='strict', - autoclose=1, handle_io_errors=1, dep_file=None): + autoclose=1, handle_io_errors=1): """ :Parameters: - `source`: either a file-like object (which is read directly), or @@ -183,7 +183,6 @@ class FileInput(Input): self.handle_io_errors = handle_io_errors if source is None: if source_path: - add_dependency(source_path, dep_file) try: self.source = open(source_path) except IOError, error: @@ -336,12 +335,3 @@ class NullOutput(Output): def write(self, data): """Do nothing ([don't even] send data to the bit bucket).""" pass - - -def add_dependency(filename, dep_file): - """ - Add filename (string) to the list of dependencies in dep_file - (file object). - """ - if dep_file: - print >>dep_file, filename |