8000 gh-118761: Improve import time of `cmd` module by donBarbos · Pull Request #130056 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-118761: Improve import time of cmd module #130056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove string import
  • Loading branch information
donBarbos committed Feb 17, 2025
commit 527fdb078b548308bee27d0bdb4a189d354579f0
7 changes: 5 additions & 2 deletions Lib/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@
functions respectively.
"""

import string, sys
import sys

__all__ = ["Cmd"]

PROMPT = '(Cmd) '
IDENTCHARS = string.ascii_letters + string.digits + '_'
IDENTCHARS = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
'0123456789'
'_')

class Cmd:
"""A simple framework for writing line-oriented command interpreters.
Expand Down
Loading
0