diff options
| author | Barry Warsaw | 2014-09-22 14:47:02 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-09-22 14:47:02 -0400 |
| commit | 6b3114c4f0d458db25aa68dc44deeaca5b642ac4 (patch) | |
| tree | 5ba5344e3186dbc3b0f31da6bf9f23bccb7ace4c /src/mailman/database/sqlite.py | |
| parent | f582dbfd193f15aa840228fa4b1c2544ae379a8e (diff) | |
| download | mailman-6b3114c4f0d458db25aa68dc44deeaca5b642ac4.tar.gz mailman-6b3114c4f0d458db25aa68dc44deeaca5b642ac4.tar.zst mailman-6b3114c4f0d458db25aa68dc44deeaca5b642ac4.zip | |
Diffstat (limited to 'src/mailman/database/sqlite.py')
| -rw-r--r-- | src/mailman/database/sqlite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/database/sqlite.py b/src/mailman/database/sqlite.py index 0594d9091..b70e474cc 100644 --- a/src/mailman/database/sqlite.py +++ b/src/mailman/database/sqlite.py @@ -56,7 +56,7 @@ class SQLiteDatabase(SABaseDatabase): assert parts.scheme == 'sqlite', ( 'Database url mismatch (expected sqlite prefix): {0}'.format(url)) path = os.path.normpath(parts.path) - fd = os.open(path, os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, 0666) + fd = os.open(path, os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, 0o666) # Ignore errors if fd > 0: os.close(fd) @@ -72,7 +72,7 @@ def _cleanup(self, tempdir): def make_temporary(database): """Adapts by monkey patching an existing SQLite IDatabase.""" tempdir = tempfile.mkdtemp() - url = 'sqlite:///' + os.path.join(tempdir, 'mailman.db') + url = 'sqlite:///' + os.path.join(tempdir, 'mailman.db') with configuration('database', url=url): database.initialize() database._cleanup = types.MethodType( |
