Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 6bc70fc

Browse files
author
Matthias Koeppe
committed
sage.misc.package.list_packages: Align optional tags in doctests
1 parent 687df80 commit 6bc70fc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/misc/package.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -253,26 +253,26 @@ def list_packages(*pkg_types: str, pkg_sources: List[str] = ['normal', 'pip', 's
253253
EXAMPLES::
254254
255255
sage: from sage.misc.package import list_packages
256-
sage: L = list_packages('standard') # optional - build
257-
sage: sorted(L.keys()) # optional - build, random
256+
sage: L = list_packages('standard') # optional - build
257+
sage: sorted(L.keys()) # optional - build, random
258258
['alabaster',
259259
'arb',
260260
'babel',
261261
...
262262
'zn_poly']
263263
sage: sage_conf_info = L['sage_conf'] # optional - build
264-
sage: sage_conf_info.type # optional - build
264+
sage: sage_conf_info.type # optional - build
265265
'standard'
266-
sage: sage_conf_info.installed # optional - build
266+
sage: sage_conf_info.is_installed() # optional - build
267267
True
268-
sage: sage_conf_info.source # optional - build
268+
sage: sage_conf_info.source # optional - build
269269
'script'
270270
271271
sage: L = list_packages(pkg_sources=['pip'], local=True) # optional - build internet
272272
sage: bs4_info = L['beautifulsoup4'] # optional - build internet
273-
sage: bs4_info.type # optional - build internet
273+
sage: bs4_info.type # optional - build internet
274274
'optional'
275-
sage: bs4_info.source # optional - build internet
275+
sage: bs4_info.source # optional - build internet
276276
'pip'
277277
278278
Check the option ``exclude_pip``::

0 commit comments

Comments
 (0)