From e6a2b7f01d756160bb73c0f3c1ad57a458d6e84b Mon Sep 17 00:00:00 2001 From: Hoboneer Date: Wed, 18 Jul 2018 02:08:57 +1200 Subject: [PATCH] Fix parameter docs for `FS.settext` Match with the docs for `FS.setbytes` because they're different versions of essentially the same thing: setX to a file, so `path` is exactly the same and `contents` is adapted for this function. --- fs/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/base.py b/fs/base.py index c9c4835c..7186ad0a 100644 --- a/fs/base.py +++ b/fs/base.py @@ -1368,7 +1368,8 @@ def settext(self, """Create or replace a file with text. Arguments: - contents (str): A path on the filesystem. + path (str): Destination path on the filesystem. + contents (str): Text to be written. encoding (str, optional): Encoding of destination file (defaults to ``'ut-8'``). errors (str, optional): How encoding errors should be treated