diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/lib-old/newdir.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/lib-old/newdir.py')
-rw-r--r-- | Lib/lib-old/newdir.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib-old/newdir.py b/Lib/lib-old/newdir.py index 9d07d6c..4994bf9 100644 --- a/Lib/lib-old/newdir.py +++ b/Lib/lib-old/newdir.py @@ -53,7 +53,7 @@ def listattrs(x): return total i = 0 while i+1 < len(total): - if total[i] = total[i+1]: + if total[i] == total[i+1]: del total[i+1] else: i = i+1 @@ -62,7 +62,7 @@ def listattrs(x): # Helper to recognize functions # def is_function(x): - return type(x) = type(is_function) + return type(x) == type(is_function) # Approximation of builtin dir(); this lists the user's # variables by default, not the current local name space. @@ -71,7 +71,7 @@ def is_function(x): # class _dirclass: def dir(args): - if type(args) = type(()): + if type(args) == type(()): return listattrs(args[1]) else: import __main__ |