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

Skip to content

Commit 9c751b7

Browse files
committed
Fix some reST mishaps.
1 parent 1d7f4b2 commit 9c751b7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/library/importlib.rst

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

9898
An abstract base class representing a :term:`finder`.
9999

100-
..method:: find_module(fullname, path=None)
100+
.. method:: find_module(fullname, path=None)
101101

102102
An abstract method for finding a :term:`loader` for the specified
103103
module. If the :term:`finder` is found on :data:`sys.meta_path` and the
@@ -112,7 +112,7 @@ are also provided to help in implementing the core ABCs.
112112

113113
An abstract base class for a :term:`loader`.
114114

115-
..method:: load_module(fullname)
115+
.. method:: load_module(fullname)
116116

117117
An abstract method for loading a module. If the module cannot be
118118
loaded, :exc:`ImportError` is raised, otherwise the loaded module is
@@ -160,7 +160,7 @@ are also provided to help in implementing the core ABCs.
160160
:pep:`302` protocol for loading arbitrary resources from the storage
161161
back-end.
162162

163-
..method:: get_data(path)
163+
.. method:: get_data(path)
164164

165165
An abstract method to return the bytes for the data located at *path*.
166166
Loaders that have a file-like storage back-end can implement this
@@ -175,20 +175,20 @@ are also provided to help in implementing the core ABCs.
175175
An abstract base class for a :term:`loader` which implements the optional
176176
:pep:`302` protocol for loaders which inspect modules.
177177

178-
..method:: is_package(fullname)
178+
.. method:: is_package(fullname)
179179

180180
An abstract method to return a true value if the module is a package, a
181181
false value otherwise. :exc:`ImportError` is raised if the
182182
:term:`loader` cannot find the module.
183183

184-
..method:: get_source(fullname)
184+
.. method:: get_source(fullname)
185185

186186
An abstract method to return the source of a module. It is returned as
187187
a string with universal newline support. Returns :keyword:`None` if no
188188
source is available (e.g. a built-in module). Raises :exc:`ImportError`
189189
if the loader cannot find the module specified.
190190

191-
..method:: get_code(fullname)
191+
.. method:: get_code(fullname)
192192

193193
An abstract method to return the :class:`code` object for a module.
194194
:keyword:`None` is returned if the module does not have a code object
@@ -206,21 +206,21 @@ are also provided to help in implementing the core ABCs.
206206
code is stored; all other details for loading Python source code will be
207207
handled by the concrete implementations of key methods.
208208

209-
..method:: source_path(fullname)
209+
.. method:: source_path(fullname)
210210

211211
An abstract method that returns the path to the source code for a
212212
module. Should return :keyword:`None` if there is no source code.
213213
:exc:`ImportError` if the module cannot be found.
214214

215-
..method:: load_module(fullname)
215+
.. method:: load_module(fullname)
216216

217217
A concrete implementation of :meth:`importlib.abc.Loader.load_module`
218218
that loads Python source code. All needed information comes from the
219219
abstract methods required by this ABC. The only pertinent assumption
220220
made by this method is that when loading a package
221221
:attr:`__path__` is set to ``[os.path.dirname(__file__)]``.
222222

223-
..method:: get_code(fullname)
223+
.. method:: get_code(fullname)
224224

225225
A concrete implementation of
226226
:meth:`importlib.abc.InspectLoader.get_code` that creates code objects
@@ -233,20 +233,20 @@ are also provided to help in implementing the core ABCs.
233233
This ABC is meant to help in creating loaders that support both Python
234234
source and bytecode.
235235

236-
..method:: source_mtime(fullname)
236+
.. method:: source_mtime(fullname)
237237

238238
An abstract method which returns the modification time for the source
239239
code of the specified module. The modification time should be an
240240
integer. If there is no source code, return :keyword:`None. If the
241241
module cannot be found then :exc:`ImportError` is raised.
242242

243-
..method:: bytecode_path(fullname)
243+
.. method:: bytecode_path(fullname)
244244

245245
An abstract method which returns the path to the bytecode for the
246246
specified module. :keyword:`None` is returned if there is no bytecode.
247247
:exc:`ImportError` is raised if the module is not found.
248248

249-
..method:: write_bytecode(fullname, bytecode)
249+
.. method:: write_bytecode(fullname, bytecode)
250250

251251
An abstract method which has the loader write *bytecode* for future
252252
use. If the bytecode is written, return :keyword:`True`. Return

0 commit comments

Comments
 (0)