From: Guido van Rossum Date: Wed, 19 Aug 1992 16:49:37 +0000 (+0000) Subject: Module getattr doesn't exist any more, it's now called newdir. X-Git-Tag: v0.9.8~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=732282fa1130a027a51d406ed5132cde9ac636e7;p=thirdparty%2FPython%2Fcpython.git Module getattr doesn't exist any more, it's now called newdir. --- diff --git a/Lib/cmd.py b/Lib/cmd.py index ab37a98dfa67..e07019f2a8b7 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -55,8 +55,8 @@ class Cmd: return func() else: - import getattr - names = getattr.dir(self) + import newdir + names = newdir.dir(self) cmds = [] for name in names: if name[:3] == 'do_':