PEP 489: Tweak code formatting.

This commit is contained in:
Berker Peksag 2015-05-21 17:10:14 +03:00
parent 0751f33dab
commit e597818e47
1 changed files with 110 additions and 100 deletions

View File

@ -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