summaryrefslogtreecommitdiffstats
path: root/Lib/stat.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/stat.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/stat.py')
-rw-r--r--Lib/stat.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/stat.py b/Lib/stat.py
index fee4965..3682b20 100644
--- a/Lib/stat.py
+++ b/Lib/stat.py
@@ -36,22 +36,22 @@ S_IFLNK = 0120000
S_IFSOCK = 0140000
def S_ISDIR(mode):
- return S_IFMT(mode) = S_IFDIR
+ return S_IFMT(mode) == S_IFDIR
def S_ISCHR(mode):
- return S_IFMT(mode) = S_IFCHR
+ return S_IFMT(mode) == S_IFCHR
def S_ISBLK(mode):
- return S_IFMT(mode) = S_IFBLK
+ return S_IFMT(mode) == S_IFBLK
def S_ISREG(mode):
- return S_IFMT(mode) = S_IFREG
+ return S_IFMT(mode) == S_IFREG
def S_ISFIFO(mode):
- return S_IFMT(mode) = S_IFIFO
+ return S_IFMT(mode) == S_IFIFO
def S_ISLNK(mode):
- return S_IFMT(mode) = S_IFLNK
+ return S_IFMT(mode) == S_IFLNK
def S_ISSOCK(mode):
- return S_IFMT(mode) = S_IFSOCK
+ return S_IFMT(mode) == S_IFSOCK