Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 773468f

Browse files
committed
Ditch the 'self' argument in importlib docs since it's implied.
1 parent b3f5501 commit 773468f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/importlib.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ are also provided to help in implementing the core ABCs.
162162

163163
.. versionadded:: 3.3
164164

165-
.. method:: find_loader(self, fullname):
165+
.. method:: find_loader(fullname):
166166

167167
An abstract method for finding a :term:`loader` for the specified
168168
module. Returns a 2-tuple of ``(loader, portion)`` where portion is a
@@ -336,7 +336,7 @@ are also provided to help in implementing the core ABCs.
336336
optimization to speed up loading by removing the parsing step of Python's
337337
compiler, and so no bytecode-specific API is exposed.
338338

339-
.. method:: path_stats(self, path)
339+
.. method:: path_stats(path)
340340

341341
Optional abstract method which returns a :class:`dict` containing
342342
metadata about the specifed path. Supported dictionary keys are:
@@ -350,7 +350,7 @@ are also provided to help in implementing the core ABCs.
350350

351351
.. versionadded:: 3.3
352352

353-
.. method:: path_mtime(self, path)
353+
.. method:: path_mtime(path)
354354

355355
Optional abstract method which returns the modification time for the
356356
specified path.
@@ -360,7 +360,7 @@ are also provided to help in implementing the core ABCs.
360360
have to implement it, but it is still available for compatibility
361361
purposes.
362362

363-
.. method:: set_data(self, path, data)
363+
.. method:: set_data(path, data)
364364

365365
Optional abstract method which writes the specified bytes to a file
366366
path. Any intermediate directories which do not exist are to be created
@@ -369,19 +369,19 @@ are also provided to help in implementing the core ABCs.
369369
When writing to the path fails because the path is read-only
370370
(:attr:`errno.EACCES`), do not propagate the exception.
371371

372-
.. method:: get_code(self, fullname)
372+
.. method:: get_code(fullname)
373373

374374
Concrete implementation of :meth:`InspectLoader.get_code`.
375375

376-
.. method:: load_module(self, fullname)
376+
.. method:: load_module(fullname)
377377

378378
Concrete implementation of :meth:`Loader.load_module`.
379379

380-
.. method:: get_source(self, fullname)
380+
.. method:: get_source(fullname)
381381

382382
Concrete implementation of :meth:`InspectLoader.get_source`.
383383

384-
.. method:: is_package(self, fullname)
384+
.. method:: is_package(fullname)
385385

386386
Concrete implementation of :meth:`InspectLoader.is_package`. A module
387387
is determined to be a package if its file path (as provided by

0 commit comments

Comments
 (0)