]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Module getattr doesn't exist any more, it's now called newdir.
authorGuido van Rossum <guido@python.org>
Wed, 19 Aug 1992 16:49:37 +0000 (16:49 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 19 Aug 1992 16:49:37 +0000 (16:49 +0000)
Lib/cmd.py

index ab37a98dfa673ecd92cc9b74c22aad1ddd3e1c87..e07019f2a8b72f14e7dfed463197141df2e31cd4 100644 (file)
@@ -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_':