summaryrefslogtreecommitdiff
path: root/docutils/io.py
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2002-11-19 02:33:05 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2002-11-19 02:33:05 +0000
commit2a8ab9ccdf887cbc888e576a71616c29ee8dbd9e (patch)
tree76db4c86ac1dc89f07858b83d8122bca60fda184 /docutils/io.py
parent52056baf6fd0350e129e9ef589e9742c2bef1fea (diff)
downloaddocutils-2a8ab9ccdf887cbc888e576a71616c29ee8dbd9e.tar.gz
Removed unnecessary parameter from ``read()`` methods.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@964 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/io.py')
-rw-r--r--docutils/io.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docutils/io.py b/docutils/io.py
index de8af4582..b72935082 100644
--- a/docutils/io.py
+++ b/docutils/io.py
@@ -44,7 +44,7 @@ class Input(TransformSpec):
return '%s: source=%r, source_path=%r' % (self.__class__, self.source,
self.source_path)
- def read(self, reader):
+ def read(self):
raise NotImplementedError
def decode(self, data):
@@ -155,7 +155,7 @@ class FileInput(Input):
except AttributeError:
pass
- def read(self, reader):
+ def read(self):
"""Read and decode a single file and return the data."""
data = self.source.read()
if self.autoclose:
@@ -226,7 +226,7 @@ class StringInput(Input):
default_source_path = '<string>'
- def read(self, reader):
+ def read(self):
"""Decode and return the source string."""
return self.decode(self.source)
@@ -253,7 +253,7 @@ class NullInput(Input):
default_source_path = 'null input'
- def read(self, reader):
+ def read(self):
"""Return a null string."""
return u''