diff options
| author | Barry Warsaw | 2016-03-24 21:49:37 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-24 21:49:37 -0400 |
| commit | e1876e6f699ab4b212d689786297f6f1e70c1551 (patch) | |
| tree | 6f3b96a233602451cc6eaf450032a56a3344c85c /src/mailman/database/sqlite.py | |
| parent | 5404f98d90410d69a744d9c0fb71a8a31f3a4a88 (diff) | |
| download | mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.gz mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.zst mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.zip | |
Diffstat (limited to 'src/mailman/database/sqlite.py')
| -rw-r--r-- | src/mailman/database/sqlite.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mailman/database/sqlite.py b/src/mailman/database/sqlite.py index fd90593fb..e36b2ba75 100644 --- a/src/mailman/database/sqlite.py +++ b/src/mailman/database/sqlite.py @@ -17,18 +17,14 @@ """SQLite database support.""" -__all__ = [ - 'SQLiteDatabase', - ] - - import os +from mailman import public from mailman.database.base import SABaseDatabase from urllib.parse import urlparse - +@public class SQLiteDatabase(SABaseDatabase): """Database class for SQLite.""" @@ -39,7 +35,10 @@ class SQLiteDatabase(SABaseDatabase): # Ensure that the SQLite database file has the proper permissions, # since SQLite doesn't play nice with umask. path = os.path.normpath(parts.path) - fd = os.open(path, os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, 0o666) + fd = os.open( + path, + os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, # flake8: noqa + 0o666) # Ignore errors if fd > 0: os.close(fd) |
