Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0fadd9f

Browse files
authoredJun 26, 2025··
gh-125142: remove duplicated import in Lib/pydoc.py (gh-135215)
1 parent 6227662 commit 0fadd9f

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)
Please sign in to comment.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant