Skip to content

Commit 527fdb0

Browse files
committed
Remove string import
1 parent edf1b97 commit 527fdb0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/cmd.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@
4242
functions respectively.
4343
"""
4444

45-
import string, sys
45+
import sys
4646

4747
__all__ = ["Cmd"]
4848

4949
PROMPT = '(Cmd) '
50-
IDENTCHARS = string.ascii_letters + string.digits + '_'
50+
IDENTCHARS = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51+
'abcdefghijklmnopqrstuvwxyz'
52+
'0123456789'
53+
'_')
5154

5255
class Cmd:
5356
"""A simple framework for writing line-oriented command interpreters.

0 commit comments

Comments
 (0)