Skip to content

Commit 4f577c6

Browse files
StanFromIrelandAndPuQing
authored andcommitted
pythongh-125142: remove duplicated import in Lib/pydoc.py (pythongh-135215)
1 parent e613aee commit 4f577c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/pydoc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,6 @@ def writedocs(dir, pkgpath='', done=None):
18121812

18131813

18141814
def _introdoc():
1815-
import textwrap
18161815
ver = '%d.%d' % sys.version_info[:2]
18171816
if os.environ.get('PYTHON_BASIC_REPL'):
18181817
pyrepl_keys = ''
@@ -2170,7 +2169,6 @@ def showtopic(self, topic, more_xrefs=''):
21702169
if more_xrefs:
21712170
xrefs = (xrefs or '') + ' ' + more_xrefs
21722171
if xrefs:
2173-
import textwrap
21742172
text = 'Related help topics: ' + ', '.join(xrefs.split()) + '\n'
21752173
wrapped_text = textwrap.wrap(text, 72)
21762174
doc += '\n%s\n' % '\n'.join(wrapped_text)

0 commit comments

Comments
 (0)