Skip to content

Commit

Permalink
Fix parameter docs for FS.settext (#190)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hoboneer authored and willmcgugan committed Jul 17, 2018
1 parent e63f5af commit c620603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c620603

Please sign in to comment.