PEP 489: Tweak code formatting.
This commit is contained in:
parent
0751f33dab
commit
e597818e47
20
pep-0489.txt
20
pep-0489.txt
|
@ -191,7 +191,9 @@ are left out, and C code is presented with a concise Python-like syntax.
|
|||
The framework that calls the importers is explained in PEP 451
|
||||
[#pep-0451-loading]_.
|
||||
|
||||
importlib/_bootstrap.py::
|
||||
importlib/_bootstrap.py:
|
||||
|
||||
::
|
||||
|
||||
class BuiltinImporter:
|
||||
def create_module(self, spec):
|
||||
|
@ -204,7 +206,9 @@ class BuiltinImporter:
|
|||
# use a backwards compatibility shim
|
||||
_load_module_shim(self, name)
|
||||
|
||||
importlib/_bootstrap_external.py::
|
||||
importlib/_bootstrap_external.py:
|
||||
|
||||
::
|
||||
|
||||
class ExtensionFileLoader:
|
||||
def create_module(self, spec):
|
||||
|
@ -217,7 +221,9 @@ importlib/_bootstrap_external.py::
|
|||
# use a backwards compatibility shim
|
||||
_load_module_shim(self, name)
|
||||
|
||||
Python/import.c (the _imp module)::
|
||||
Python/import.c (the _imp module):
|
||||
|
||||
::
|
||||
|
||||
def create_dynamic(spec):
|
||||
name = spec.name
|
||||
|
@ -264,7 +270,9 @@ Python/import.c (the _imp module)::
|
|||
_PyImport_FixupExtensionObject(module, name, name)
|
||||
return module
|
||||
|
||||
Python/importdl.c::
|
||||
Python/importdl.c:
|
||||
|
||||
::
|
||||
|
||||
def _PyImport_LoadDynamicModuleWithSpec(spec):
|
||||
path = spec.origin
|
||||
|
@ -287,7 +295,9 @@ def _PyImport_LoadDynamicModuleWithSpec(spec):
|
|||
# fall back to single-phase initialization
|
||||
....
|
||||
|
||||
Objects/moduleobject.c::
|
||||
Objects/moduleobject.c:
|
||||
|
||||
::
|
||||
|
||||
def PyModule_FromDefAndSpec(def, spec):
|
||||
name = spec.name
|
||||
|
|
Loading…
Reference in New Issue