docs/comments: fix typo with wildcard import (#50379)
This commit is contained in:
parent
6f2393a345
commit
a95fa26857
@ -497,7 +497,7 @@ extends Spack's ``Package`` class. For example, here is
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
from spack import *
|
from spack.package import *
|
||||||
|
|
||||||
class Libelf(Package):
|
class Libelf(Package):
|
||||||
""" ... description ... """
|
""" ... description ... """
|
||||||
@ -1089,7 +1089,7 @@ You've already seen the ``homepage`` and ``url`` package attributes:
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
from spack import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
class Mpich(Package):
|
class Mpich(Package):
|
||||||
@ -6183,7 +6183,7 @@ running:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from spack import *
|
from spack.package import *
|
||||||
|
|
||||||
This is already part of the boilerplate for packages created with
|
This is already part of the boilerplate for packages created with
|
||||||
``spack create``.
|
``spack create``.
|
||||||
|
@ -56,7 +56,7 @@ def is_package(f):
|
|||||||
"""Whether flake8 should consider a file as a core file or a package.
|
"""Whether flake8 should consider a file as a core file or a package.
|
||||||
|
|
||||||
We run flake8 with different exceptions for the core and for
|
We run flake8 with different exceptions for the core and for
|
||||||
packages, since we allow `from spack import *` and poking globals
|
packages, since we allow `from spack.package import *` and poking globals
|
||||||
into packages.
|
into packages.
|
||||||
"""
|
"""
|
||||||
return f.startswith("var/spack/") and f.endswith("package.py")
|
return f.startswith("var/spack/") and f.endswith("package.py")
|
||||||
|
Loading…
Reference in New Issue
Block a user