summaryrefslogtreecommitdiff
path: root/src/mailman/utilities/filesystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/utilities/filesystem.py')
-rw-r--r--src/mailman/utilities/filesystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/utilities/filesystem.py b/src/mailman/utilities/filesystem.py
index 3296a4a6c..0234f2def 100644
--- a/src/mailman/utilities/filesystem.py
+++ b/src/mailman/utilities/filesystem.py
@@ -66,7 +66,7 @@ def makedirs(path, mode=02775):
os.makedirs(path, mode)
except OSError as error:
# Ignore the exceptions if the directory already exists.
- if error.errno <> errno.EEXIST:
+ if error.errno != errno.EEXIST:
raise
# Some systems such as FreeBSD ignore mkdir's mode, so walk the just
# created directories and try to set the mode, ignoring any OSErrors that