@@ -97,9 +97,9 @@ def listdir(self, path):
9797 :return: list of names, relative to ``path``.
9898 :rtype: list
9999
100- :raises ` fs.errors.DirectoryExpected` : If `path` is not a
100+ :raises fs.errors.DirectoryExpected: If `path` is not a
101101 directory.
102- :raises ` fs.errors.ResourceNotFound` : If `path` does not exist.
102+ :raises fs.errors.ResourceNotFound: If `path` does not exist.
103103
104104 This method will return a list of the resources in a directory.
105105 A 'resource' is a file, directory, or one of the other types
@@ -120,8 +120,8 @@ def makedir(self, path, permissions=None, recreate=False):
120120 :param bool recreate: Do not raise an error if the directory exists.
121121 :rtype: :class:`~fs.subfs.SubFS`
122122
123- :raises ` fs.errors.DirectoryExists` : if the path already exists.
124- :raises ` fs.errors.ResourceNotFound` : if the path is not found.
123+ :raises fs.errors.DirectoryExists: if the path already exists.
124+ :raises fs.errors.ResourceNotFound: if the path is not found.
125125
126126 """
127127
@@ -142,10 +142,10 @@ def openbin(self, path, mode="r", buffering=-1, **options):
142142 information required by the filesystem (if any).
143143 :rtype: file object
144144
145- :raises ` fs.errors.FileExpected` : If the path is not a file.
146- :raises ` fs.errors.FileExists` : If the file exists, and
145+ :raises fs.errors.FileExpected: If the path is not a file.
146+ :raises fs.errors.FileExists: If the file exists, and
147147 *exclusive mode* is specified (`x` in the mode).
148- :raises ` fs.errors.ResourceNotFound` : If `path` does not exist.
148+ :raises fs.errors.ResourceNotFound: If `path` does not exist.
149149
150150 """
151151
@@ -156,8 +156,8 @@ def remove(self, path):
156156
157157 :param str path: Path to the file you want to remove.
158158
159- :raises ` fs.errors.FileExpected` : if the path is a directory.
160- :raises ` fs.errors.ResourceNotFound` : if the path does not
159+ :raises fs.errors.FileExpected: if the path is a directory.
160+ :raises fs.errors.ResourceNotFound: if the path does not
161161 exist.
162162
163163 """
@@ -169,14 +169,14 @@ def removedir(self, path):
169169
170170 :param str path: Path of the directory to remove.
171171
172- :raises ` fs.errors.DirectoryNotEmpty` : If the directory is not
172+ :raises fs.errors.DirectoryNotEmpty: If the directory is not
173173 empty (see :meth:`~fs.base.removetree` if you want to
174174 remove the directory contents).
175- :raises ` fs.errors.DirectoryExpected` : If the path is not a
175+ :raises fs.errors.DirectoryExpected: If the path is not a
176176 directory.
177- :raises ` fs.errors.ResourceNotFound` : If the path does not
177+ :raises fs.errors.ResourceNotFound: If the path does not
178178 exist.
179- :raises ` fs.errors.RemoveRootError` : If an attempt is made to
179+ :raises fs.errors.RemoveRootError: If an attempt is made to
180180 remove the root directory (i.e. `'/'`).
181181 """
182182
@@ -188,7 +188,7 @@ def setinfo(self, path, info):
188188 :param str path: Path to a resource on the filesystem.
189189 :param dict info: Dict of resource info.
190190
191- :raises ` fs.errors.ResourceNotFound` : If `path` does not exist
191+ :raises fs.errors.ResourceNotFound: If `path` does not exist
192192 on the filesystem.
193193
194194 This method is the compliment to :class:`~fs.base.getinfo` and is
@@ -219,8 +219,8 @@ def appendbytes(self, path, data):
219219
220220 :param str path: Path to a file.
221221 :param bytes data: Bytes to append.
222- :raises: ` ValueError` if ``data`` is not bytes.
223- :raises: ` fs.errors.ResourceNotFound` if a parent directory of
222+ :raises ValueError: if ``data`` is not bytes.
223+ :raises fs.errors.ResourceNotFound: if a parent directory of
224224 ``path`` does not exist.
225225
226226 """
@@ -242,8 +242,8 @@ def appendtext(self,
242242
243243 :param str path: Path to a file.
244244 :param str text: Text to append.
245- :raises: ` ValueError` if ``text`` is not bytes.
246- :raises: ` fs.errors.ResourceNotFound` if a parent directory of
245+ :raises ValueError: if ``text`` is not bytes.
246+ :raises fs.errors.ResourceNotFound: if a parent directory of
247247 ``path`` does not exist.
248248
249249 """
@@ -290,9 +290,9 @@ def copy(self, src_path, dst_path, overwrite=False):
290290 :type src_path: str
291291 :param dst_path: Path to destination file.
292292 :type dst_path: str
293- :raises ` fs.errors.DestinationExists` : If ``dst_path`` exists,
293+ :raises fs.errors.DestinationExists: If ``dst_path`` exists,
294294 and overwrite == ``False``.
295- :raises ` fs.errors.ResourceNotFound` : If a parent directory of
295+ :raises fs.errors.ResourceNotFound: If a parent directory of
296296 ``dst_path`` does not exist.
297297
298298 """
@@ -310,7 +310,7 @@ def copydir(self, src_path, dst_path, create=False):
310310 :param str dst_path: Destination directory.
311311 :param bool create: If ``True`` then ``src_path`` will be
312312 created if it doesn't already exist.
313- :raises ` fs.errors.ResourceNotFound` : If the destination
313+ :raises fs.errors.ResourceNotFound: If the destination
314314 directory does not exist, and ``create`` is not True.
315315
316316 """
@@ -465,7 +465,7 @@ def getbytes(self, path):
465465 :returns: file contents
466466 :rtype: bytes
467467
468- :raises ` fs.errors.ResourceNotFound` : If ``path`` does not
468+ :raises fs.errors.ResourceNotFound: If ``path`` does not
469469 exist.
470470
471471 """
@@ -483,7 +483,7 @@ def gettext(self, path, encoding=None, errors=None, newline=''):
483483 :param str errors: Unicode errors parameter.
484484 :param str newline: Newlines parameter.
485485 :returns: file contents.
486- :raises ` fs.errors.ResourceNotFound` : If ``path`` does not
486+ :raises fs.errors.ResourceNotFound: If ``path`` does not
487487 exist.
488488
489489 """
@@ -570,7 +570,7 @@ def getsyspath(self, path):
570570
571571 :param str path: A path on the filesystem.
572572 :rtype: str
573- :raises NoSysPath: If there is no corresponding system path.
573+ :raises fs.errors. NoSysPath: If there is no corresponding system path.
574574
575575 A system path is one recognized by the OS, that may be used
576576 outside of PyFilesystem (in an application or a shell for
@@ -641,7 +641,7 @@ def geturl(self, path, purpose='download'):
641641 for ``purpose``.
642642 :returns: A URL.
643643 :rtype: str
644- :raises ` fs.errors.NoURL` : If the path does not map to a URL.
644+ :raises fs.errors.NoURL: If the path does not map to a URL.
645645
646646 """
647647 raise errors .NoURL (path , purpose )
@@ -768,9 +768,9 @@ def makedirs(self, path, permissions=None, recreate=False):
768768 :returns: A sub-directory filesystem.
769769 :rtype: :class:`~fs.subfs.SubFS`
770770
771- :raises ` fs.errors.DirectoryExists` : if the path is already
771+ :raises fs.errors.DirectoryExists: if the path is already
772772 a directory, and ``recreate`` is False.
773- :raises ` fs.errors.DirectoryExpected` : if one of the ancestors
773+ :raises fs.errors.DirectoryExpected: if one of the ancestors
774774 in the path isn't a directory.
775775
776776 """
@@ -799,9 +799,9 @@ def move(self,
799799 file will be written to.
800800 :param bool overwrite: If `True` destination path will be
801801 overwritten if it exists.
802- :raises ` fs.errors.DestinationExists` : If ``dst_path`` exists,
802+ :raises fs.errors.DestinationExists: If ``dst_path`` exists,
803803 and overwrite == ``False``.
804- :raises ` fs.errors.ResourceNotFound` : If a parent directory of
804+ :raises fs.errors.ResourceNotFound: If a parent directory of
805805 ``dst_path`` does not exist.
806806
807807 """
@@ -875,7 +875,7 @@ def opendir(self, path):
875875 :param str path: Path to a directory on the filesystem.
876876 :returns: A filesystem object representing a sub-directory.
877877 :rtype: :class:`~fs.subfs.SubFS`
878- :raises ` fs.errors.DirectoryExpected` : If ``dst_path`` does not
878+ :raises fs.errors.DirectoryExpected: If ``dst_path`` does not
879879 exist or is not a directory.
880880
881881 """
@@ -1111,9 +1111,9 @@ def validatepath(self, path):
11111111
11121112 :param str path: A path
11131113 :returns: A normalized, absolute path.
1114- :rtype str:
1115- :raises ` fs.errors.InvalidPath` : If the path is invalid.
1116- :raises: :class:`~ fs.errors.FilesystemClosed` if the filesystem
1114+ :rtype: str
1115+ :raises fs.errors.InvalidPath: If the path is invalid.
1116+ :raises fs.errors.FilesystemClosed: if the filesystem
11171117 is closed.
11181118
11191119 """
@@ -1187,7 +1187,7 @@ def check(self):
11871187 filesystem is closed.
11881188
11891189 :returns: None
1190- :raises: :class:`~ fs.errors.FilesystemClosed` if the filesystem
1190+ :raises fs.errors.FilesystemClosed: if the filesystem
11911191 is closed.
11921192
11931193 """
0 commit comments