From f48ca2a1aa74a1b0fe14003d9ceb37e146b46738 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 2 Nov 2011 15:41:39 -0400 Subject: * Fix a couple of spelling errors. * Code cleanup (<> -> != ... sigh) * Minor refactoring of database setup code so that touch() is moved to the SQLiteDatabase class; it's not relevant for PostgreSQL. --- src/mailman/utilities/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/utilities/filesystem.py') 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 -- cgit v1.2.3-70-g09d2