From 9b3bc715980b51ffbf535bcf159ba4be03938c19 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 20 Jun 1993 21:02:22 +0000 Subject: * 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! --- Lib/cmd.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Lib/cmd.py') diff --git a/Lib/cmd.py b/Lib/cmd.py index eedf613d4e..7c512def60 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -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_': -- cgit v1.2.1