diff options
author | Guido van Rossum <guido@python.org> | 1993-06-20 21:02:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-06-20 21:02:22 (GMT) |
commit | 9b3bc715980b51ffbf535bcf159ba4be03938c19 (patch) | |
tree | bac82c0ba89639c54234f789ae862e6b1b4329ee /Lib/cmd.py | |
parent | 52fc1f607eab013b1e7688b4cfb3b09fb82ce9eb (diff) | |
download | cpython-9b3bc715980b51ffbf535bcf159ba4be03938c19.zip cpython-9b3bc715980b51ffbf535bcf159ba4be03938c19.tar.gz cpython-9b3bc715980b51ffbf535bcf159ba4be03938c19.tar.bz2 |
* 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!
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r-- | Lib/cmd.py | 8 |
1 files changed, 5 insertions, 3 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_': |