mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-125142: remove duplicated import in Lib/pydoc.py
(gh-135215)
This commit is contained in:
parent
6227662ff3
commit
0fadd9fd20
1 changed files with 0 additions and 2 deletions
|
@ -1812,7 +1812,6 @@ def writedocs(dir, pkgpath='', done=None):
|
||||||
|
|
||||||
|
|
||||||
def _introdoc():
|
def _introdoc():
|
||||||
import textwrap
|
|
||||||
ver = '%d.%d' % sys.version_info[:2]
|
ver = '%d.%d' % sys.version_info[:2]
|
||||||
if os.environ.get('PYTHON_BASIC_REPL'):
|
if os.environ.get('PYTHON_BASIC_REPL'):
|
||||||
pyrepl_keys = ''
|
pyrepl_keys = ''
|
||||||
|
@ -2170,7 +2169,6 @@ module "pydoc_data.topics" could not be found.
|
||||||
if more_xrefs:
|
if more_xrefs:
|
||||||
xrefs = (xrefs or '') + ' ' + more_xrefs
|
xrefs = (xrefs or '') + ' ' + more_xrefs
|
||||||
if xrefs:
|
if xrefs:
|
||||||
import textwrap
|
|
||||||
text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n'
|
text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n'
|
||||||
wrapped_text = textwrap.wrap(text, 72)
|
wrapped_text = textwrap.wrap(text, 72)
|
||||||
doc += '\n%s\n' % '\n'.join(wrapped_text)
|
doc += '\n%s\n' % '\n'.join(wrapped_text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue