mirror of
https://github.com/python/cpython.git
synced 2025-07-15 07:15:18 +00:00
* aifc.py: don't die on invalid MARK chunk
* calendar.py: remove stuff now built in time; some cleanup and generalization in the calendar printing * cmd.py: use __init__. * tzparse.py: This module is no longer necessary -- use builtin time instead!
This commit is contained in:
parent
52fc1f607e
commit
9b3bc71598
4 changed files with 104 additions and 133 deletions
|
@ -8,11 +8,13 @@ PROMPT = '(Cmd) '
|
|||
IDENTCHARS = string.letters + string.digits + '_'
|
||||
|
||||
class Cmd:
|
||||
|
||||
def init(self):
|
||||
|
||||
def __init__(self):
|
||||
self.prompt = PROMPT
|
||||
self.identchars = IDENTCHARS
|
||||
self.lastcmd = ''
|
||||
|
||||
def init(self):
|
||||
return self
|
||||
|
||||
def cmdloop(self):
|
||||
|
@ -56,7 +58,7 @@ class Cmd:
|
|||
func()
|
||||
else:
|
||||
import newdir
|
||||
names = newdir.dir(self)
|
||||
names = newdir.dir(self.__class__)
|
||||
cmds = []
|
||||
for name in names:
|
||||
if name[:3] == 'do_':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue